types: define ApplicationCommand enums in lib (#5947)

This commit is contained in:
monbrey
2021-06-28 21:00:07 +10:00
committed by GitHub
parent 0a0630c049
commit e37ef3af21

19
typings/index.d.ts vendored
View File

@@ -7,6 +7,23 @@ declare enum ActivityTypes {
COMPETING = 5,
}
declare enum ApplicationCommandOptionTypes {
SUB_COMMAND = 1,
SUB_COMMAND_GROUP = 2,
STRING = 3,
INTEGER = 4,
BOOLEAN = 5,
USER = 6,
CHANNEL = 7,
ROLE = 8,
MENTIONABLE = 9,
}
declare enum ApplicationCommandPermissionTypes {
ROLE = 1,
USER = 2,
}
declare enum ChannelType {
text = 0,
dm = 1,
@@ -150,8 +167,6 @@ declare module 'discord.js' {
APIRole,
APIUser,
Snowflake as APISnowflake,
ApplicationCommandOptionType as ApplicationCommandOptionTypes,
ApplicationCommandPermissionType as ApplicationCommandPermissionTypes,
} from 'discord-api-types/v8';
import { EventEmitter } from 'events';
import { PathLike } from 'fs';