Types of command bases
Base command type selector
Acceptable CHAT_INPUT command option types (read more here)
Child command initializer selector
Child command resolvables
Child command types
Child command type selector
Command function definition
If function returns (also after resolving a Promise):
It is possible to manually send replies directly from the command function using the interaction property from InputManager argument. If you are using slash commands don't forget to use the CommandInteraction.prototype.editReply method instead of the reply method since a reply is already deferred when a command function gets called (read more here) If you try to create a new reply, you app will throw an error that will result a crash.
If you manually reply to a slash command interaction and return void from the command function, a SUCCESS message will not be sent or reply will not get deleted (if you want to disable SUCCESS messages on prefix interactions set announceSuccess property to false).
If command function throws an error, it will automatically get caught and your bot will send an ERROR message. The app will not crash.
All types that can be returned from a command function
Command initializer selector
Discord permission types
Command types
Command type selector
Context menu command types
Ephemeral response types
Input parameter value resolvable selector
Types of system messages
ObjectID.prototype.toObject() return type selector
Types of Discord objects (IDs contained in an ObjectID wrapper)
All parameter resolvables
Parameter type values
Permission checking methods
ALL - uses Permissions.prototype.has method
ANY - uses Permissions.prototype.any method
Definition of permission function
Prefix scope types
TargetID.prototype.toObject() return type selector
Types of Discord context menu targets (IDs contained in a TargetID wrapper)
Generated using TypeDoc
Discord application command types CHAT_INPUT - chat interaction (prefix or slash commands) USER - context menu interaction for user MESSAGE - context menu interaction for message