From d32db8833e1058fb36f2e83af79d5353a9f2f693 Mon Sep 17 00:00:00 2001 From: KonkenBonken <49250602+KonkenBonken@users.noreply.github.com> Date: Wed, 16 Feb 2022 14:02:50 +0100 Subject: [PATCH] docs: ApplicationCommandData typedef (#7389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antonio Román --- .../discord.js/src/structures/ApplicationCommand.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/discord.js/src/structures/ApplicationCommand.js b/packages/discord.js/src/structures/ApplicationCommand.js index 4dd6eadea..f43304d92 100644 --- a/packages/discord.js/src/structures/ApplicationCommand.js +++ b/packages/discord.js/src/structures/ApplicationCommand.js @@ -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 */ /**