summary refs log tree commit diff
path: root/src/util/Constants.ts
blob: cdc0d07d619251235fe9388776fb6375e699e691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export enum OPCODES {
	Dispatch,
	Heartbeat,
	Identify,
	Presence_Update,
	Voice_State_Update,
	Resume,
	Reconnect,
	Request_Guild_Members,
	Invalid_Session,
	Hello,
	Heartbeat_ACK,
}
export enum CLOSECODES {
	Unknown_error = 4000,
	Unknown_opcode,
	Decode_error,
	Not_authenticated,
	Authentication_failed,
	Already_authenticated,
	Invalid_session,
	Invalid_seq,
	Rate_limited,
	Session_timed_out,
	Invalid_shard,
	Sharding_required,
	Invalid_API_version,
	Invalid_intent,
	Disallowed_intent,
}

export interface Payload {
	op: OPCODES;
	d?: any;
	s?: number;
	t?: string;
}