feat(ApplicationCommandOptionType): add NUMBER (10) (#6128)

This commit is contained in:
Advaith
2021-07-27 03:12:43 -07:00
committed by GitHub
parent 4886ae23ab
commit 2f1cc1fc27
4 changed files with 16 additions and 0 deletions

1
typings/enums.d.ts vendored
View File

@@ -20,6 +20,7 @@ export enum ApplicationCommandOptionTypes {
CHANNEL = 7,
ROLE = 8,
MENTIONABLE = 9,
NUMBER = 10,
}
export enum ApplicationCommandPermissionTypes {

2
typings/index.d.ts vendored
View File

@@ -460,6 +460,8 @@ export class CommandInteractionOptionResolver {
public getString(name: string, required?: boolean): string | null;
public getInteger(name: string, required: true): number;
public getInteger(name: string, required?: boolean): number | null;
public getNumber(name: string, required: true): number;
public getNumber(name: string, required?: boolean): number | null;
public getUser(name: string, required: true): NonNullable<CommandInteractionOption['user']>;
public getUser(name: string, required?: boolean): NonNullable<CommandInteractionOption['user']> | null;
public getMember(name: string, required: true): NonNullable<CommandInteractionOption['member']>;