mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
types: define ApplicationCommand enums in lib (#5947)
This commit is contained in:
19
typings/index.d.ts
vendored
19
typings/index.d.ts
vendored
@@ -7,6 +7,23 @@ declare enum ActivityTypes {
|
|||||||
COMPETING = 5,
|
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 {
|
declare enum ChannelType {
|
||||||
text = 0,
|
text = 0,
|
||||||
dm = 1,
|
dm = 1,
|
||||||
@@ -150,8 +167,6 @@ declare module 'discord.js' {
|
|||||||
APIRole,
|
APIRole,
|
||||||
APIUser,
|
APIUser,
|
||||||
Snowflake as APISnowflake,
|
Snowflake as APISnowflake,
|
||||||
ApplicationCommandOptionType as ApplicationCommandOptionTypes,
|
|
||||||
ApplicationCommandPermissionType as ApplicationCommandPermissionTypes,
|
|
||||||
} from 'discord-api-types/v8';
|
} from 'discord-api-types/v8';
|
||||||
import { EventEmitter } from 'events';
|
import { EventEmitter } from 'events';
|
||||||
import { PathLike } from 'fs';
|
import { PathLike } from 'fs';
|
||||||
|
|||||||
Reference in New Issue
Block a user