File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments