You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under Application Command Structure, both the new integration_types and contexts fields are documented as non-nullable and with defaults.
If you create an application command that doesn't specify:
integration_types: it will be [0] (as the documentation says: "Defaults to GUILD_INSTALL (0)")
contexts: it will be null (despite not being marked nullable and supposedly "By default, all interaction context types included for new commands.")
Is contexts supposed to behave like integration_types and return the default instead of null? Is it expected to return null?
Edit: Seems like contexts also isn't including all interaction context types by default. Any application command with "contexts": null won't be visible/usable in DMs/Group DMs, only in guilds or DMs with the bot.
Steps to Reproduce
PUT a simple command for your app that doesn't specify integration_types or contexts:
Description
Under Application Command Structure, both the new
integration_types
andcontexts
fields are documented as non-nullable and with defaults.If you create an application command that doesn't specify:
integration_types
: it will be[0]
(as the documentation says: "Defaults toGUILD_INSTALL (0)
")contexts
: it will benull
(despite not being marked nullable and supposedly "By default, all interaction context types included for new commands.")Is
contexts
supposed to behave likeintegration_types
and return the default instead ofnull
? Is it expected to returnnull
?Edit: Seems like
contexts
also isn't including all interaction context types by default. Any application command with"contexts": null
won't be visible/usable in DMs/Group DMs, only in guilds or DMs with the bot.Steps to Reproduce
PUT a simple command for your app that doesn't specify
integration_types
orcontexts
:And the response will include defaults for
integration_types
butnull
forcontexts
:Expected Behavior
Either:
contexts
is documented as nullablecontexts
is given a default value likeintegration_types
isCurrent Behavior
contexts
is documented non-nullable, but the API can returnnull
Screenshots/Videos
Client and System Information
curl 7.81.0
The text was updated successfully, but these errors were encountered: