🎨 restructure

This commit is contained in:
Flam3rboy
2021-02-05 16:58:50 +01:00
parent 43ce48e7c6
commit 61cd85b7ed
5 changed files with 170 additions and 67 deletions
-31
View File
@@ -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 {}
-15
View File
@@ -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;
}