Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Jul 30, 2021
2 parents 70127b8 + 1ceb623 commit 1f9f85e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export enum CommandOptionType {
/** A role, this would return the role's ID in the interaction. */
ROLE = 8,
/** Anything mentionable, returning the ID of the object. */
MENTIONABLE = 9
MENTIONABLE = 9,
/** A number, including decimal numbers. */
NUMBER = 10
}

/**
Expand Down Expand Up @@ -138,7 +140,7 @@ export interface ApplicationCommandOptionSubCommand extends Omit<ApplicationComm
*/
export interface ApplicationCommandOptionArgument extends Omit<ApplicationCommandOptionBase, 'type'> {
/** The type of option this one is. */
type: CommandOptionType.STRING | CommandOptionType.INTEGER;
type: CommandOptionType.STRING | CommandOptionType.INTEGER | CommandOptionType.NUMBER;
/** The choices of the option. If set, these are the only values a user can pick from. */
choices?: ApplicationCommandOptionChoice[];
}
Expand Down

0 comments on commit 1f9f85e

Please sign in to comment.