Skip to content

Commit 68df7a3

Browse files
committed
proper default handling for perm v2
1 parent a5f2423 commit 68df7a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

interactions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ type ApplicationCommand struct {
114114
// Set of permissions represented as a bit set
115115
DefaultPermissions *permissions.PermissionBit `json:"default_member_permissions,omitempty"`
116116
// Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible.
117-
AllowUseInDMs bool `json:"dm_permission"`
117+
AllowUseInDMs *bool `json:"dm_permission,omitempty"`
118118
// DefaultPermission is whether the command is enabled by default when the app is added to a guild
119-
DefaultPermission bool `json:"default_permission"`
119+
DefaultPermission *bool `json:"default_permission,omitempty"`
120120
// Version is an autoincrementing version identifier updated during substantial record changes
121121
Version Snowflake `json:"version,omitempty"`
122122
}

0 commit comments

Comments
 (0)