mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
Add Discord data types
This commit is contained in:
@@ -24,3 +24,31 @@ export interface DiscordBotGateway {
|
||||
reset_after: number
|
||||
}
|
||||
}
|
||||
|
||||
export enum OpCode {
|
||||
Dispatch = 0,
|
||||
Heartbeat,
|
||||
Identify,
|
||||
StatusUpdate,
|
||||
VoiceStateUpdate,
|
||||
Resume,
|
||||
Reconnect,
|
||||
RequestGuildMembers,
|
||||
InvalidSession,
|
||||
Hello,
|
||||
HeartbeatACK
|
||||
}
|
||||
|
||||
export enum GatewayCloseEvent {
|
||||
UnknownError = 4000,
|
||||
UnknownOpcode,
|
||||
DecodeError,
|
||||
NotAuthenticated,
|
||||
AuthenticationFailed,
|
||||
AlreadyAuthenticated,
|
||||
InvalidSeq = 4007,
|
||||
RateLimited,
|
||||
SessionTimeout,
|
||||
InvalidShard,
|
||||
ShardingRequired
|
||||
}
|
||||
Reference in New Issue
Block a user