docs: ApplicationCommandData typedef (#7389)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
KonkenBonken
2022-02-16 14:02:50 +01:00
committed by GitHub
parent 5cf5071061
commit d32db8833e

View File

@@ -127,11 +127,13 @@ class ApplicationCommand extends Base {
/**
* Data for creating or editing an application command.
* @typedef {Object} ApplicationCommandData
* @property {string} name The name of the command
* @property {string} description The description of the command
* @property {ApplicationCommandType} [type] The type of the command
* @property {string} name The name of the command, must be in all lowercase if type is
* {@link ApplicationCommandType.ChatInput}
* @property {string} description The description of the command, if type is {@link ApplicationCommandType.ChatInput}
* @property {ApplicationCommandType} [type=ApplicationCommandType.ChatInput] The type of the command
* @property {ApplicationCommandOptionData[]} [options] Options for the command
* @property {boolean} [defaultPermission] Whether the command is enabled by default when the app is added to a guild
* @property {boolean} [defaultPermission=true] Whether the command is enabled by default when the app is added to a
* guild
*/
/**