diff --git a/index.d.ts b/index.d.ts index b4de2bae2..512371803 100644 --- a/index.d.ts +++ b/index.d.ts @@ -79,7 +79,7 @@ declare namespace Eris { type InteractionDataOptions = { name: string; type: Constants["ApplicationCommandOptionTypes"][keyof Constants["ApplicationCommandOptionTypes"]]; - value?: string; + value?: string | number | boolean; options?: InteractionDataOptions[]; }; diff --git a/lib/structures/CommandInteraction.js b/lib/structures/CommandInteraction.js index 08e52ecd3..bc4ac7326 100644 --- a/lib/structures/CommandInteraction.js +++ b/lib/structures/CommandInteraction.js @@ -22,7 +22,7 @@ const {InteractionResponseTypes} = require("../Constants"); * @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 {Number?} data.options.value The value of the run Application Command (Mutually exclusive with options) +* @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