From 5d635b7c2c5854406b6028253315d778e24f44cb Mon Sep 17 00:00:00 2001 From: Catboy Date: Thu, 23 Sep 2021 14:24:51 -0500 Subject: [PATCH] Fix js docs maybe --- lib/structures/AutocompleteInteraction.js | 10 +++++----- lib/structures/CommandInteraction.js | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/structures/AutocompleteInteraction.js b/lib/structures/AutocompleteInteraction.js index 2d0ba163e..fa9bcbc13 100644 --- a/lib/structures/AutocompleteInteraction.js +++ b/lib/structures/AutocompleteInteraction.js @@ -15,11 +15,11 @@ const {InteractionResponseTypes} = require("../Constants"); * @prop {Number} data.type The [command type](https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types) * @prop {String?} data.target_id The id the of user or message targetted by a context menu command * @prop {Array?} data.options The run Application Command options -* @prop {String} data.options.name The name of the Application Command option -* @prop {Number} data.options.type Command option type, 1-10 -* @prop {String? | Number? | Boolean?} data.options.value The value of the run Application Command (Mutually exclusive with options) -* @prop {Boolean?} data.options.focused Whether or not the option is focused -* @prop {Array?} data.options.options The run Application Command options (Mutually exclusive with value) +* @prop {String} data.options[].name The name of the Application Command option +* @prop {Number} data.options[].type Command option type, 1-10 +* @prop {String? | Number? | Boolean?} data.options[].value The value of the run Application Command (Mutually exclusive with options) +* @prop {Boolean?} data.options[].focused Whether or not the option is focused +* @prop {Array?} data.options[].options The run Application Command options (Mutually exclusive with value) * @prop {String?} guildID The ID of the guild in which the interaction was created * @prop {Member?} member The member who triggered the interaction (This is only sent when the interaction is invoked within a guild) * @prop {User?} user The user who triggered the interaction (This is only sent when the interaction is invoked within a dm) diff --git a/lib/structures/CommandInteraction.js b/lib/structures/CommandInteraction.js index d6fb0b8a0..e84292912 100644 --- a/lib/structures/CommandInteraction.js +++ b/lib/structures/CommandInteraction.js @@ -20,10 +20,10 @@ const {InteractionResponseTypes} = require("../Constants"); * @prop {Number} data.type The [command type](https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types) * @prop {String?} data.target_id The id the of user or message targetted by a context menu command * @prop {Array?} data.options The run Application Command options -* @prop {String} data.options.name The name of the Application Command option -* @prop {Number} data.options.type Command option type, 1-10 -* @prop {String? | Number? | Boolean?} data.options.value The value of the run Application Command (Mutually exclusive with options) -* @prop {Array?} data.options.options The run Application Command options (Mutually exclusive with value) +* @prop {String} data.options[].name The name of the Application Command option +* @prop {Number} data.options[].type Command option type, 1-10 +* @prop {String? | Number? | Boolean?} data.options[].value The value of the run Application Command (Mutually exclusive with options) +* @prop {Array?} data.options[].options The run Application Command options (Mutually exclusive with value) * @prop {Object?} data.resolved converted users + roles + channels * @prop {Collection?} data.resolved.users converted users * @prop {Collection?} data.resolved.members converted members