🎨 restructure
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
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 enum SEQUENCENUM {}
|
||||
@@ -1,15 +0,0 @@
|
||||
//* https://discord.com/developers/docs/topics/gateway
|
||||
|
||||
import { OPCODES, SEQUENCENUM } from "./codes";
|
||||
|
||||
export interface message_prod {
|
||||
op: OPCODES;
|
||||
d: object;
|
||||
s: SEQUENCENUM;
|
||||
t: string;
|
||||
}
|
||||
|
||||
export interface message_dev {
|
||||
req_type: "new_auth" | "check_auth";
|
||||
token?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user