Skip to content

Commit

Permalink
Change options.value to string | number | boolean for now
Browse files Browse the repository at this point in the history
Co-Authored-By: coolcalcacol <[email protected]>
  • Loading branch information
JustCat80 and coolcalcacol committed Aug 23, 2021
1 parent 0160823 commit 0e68d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
};

Expand Down
2 changes: 1 addition & 1 deletion lib/structures/CommandInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const {InteractionResponseTypes} = require("../Constants");
* @prop {Array<Object>?} 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<Object>?} data.options.options The run Application Command options (Mutually exclusive with value)
* @prop {Object?} data.resolved converted users + roles + channels
* @prop {Collection<User>?} data.resolved.users converted users
Expand Down

0 comments on commit 0e68d16

Please sign in to comment.