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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
use Client;
use GatewayIntent;
use EventHandler;
use Payload;
;
/*
{
"t": "MESSAGE_CREATE",
"s": 2,
"op": 0,
"d": {
"type": 0,
"tts": false,
"timestamp": "2024-03-16T06:04:56.199000+00:00",
"referenced_message": null,
"pinned": false,
"nonce": "1218439840215859200",
"mentions": [],
"mention_roles": [],
"mention_everyone": false,
"member": {
"roles": [
"1218051460751687770"
],
"premium_since": null,
"pending": false,
"nick": null,
"mute": false,
"joined_at": "2024-03-15T03:27:11.652000+00:00",
"flags": 0,
"deaf": false,
"communication_disabled_until": null,
"avatar": null
},
"id": "1218439843462254682",
"flags": 0,
"embeds": [],
"edited_timestamp": null,
"content": "",
"components": [],
"channel_id": "1204212041158492164",
"author": {
"username": "_thatmagicalcat",
"public_flags": 0,
"premium_type": 0,
"id": "815189874478546954",
"global_name": "thatmagicalcat",
"discriminator": "0",
"avatar_decoration_data": null,
"avatar": "6a7a25edccdcabbe9f29558a0b6a7f00"
},
"attachments": [],
"guild_id": "1204212039896277093"
}
}
*/
/*
Payload: {
"t": "READY",
"s": 1,
"op": 0,
"d": {
"v": 10,
"user_settings": {},
"user": {
"verified": true,
"username": "test",
"mfa_enabled": false,
"id": "1218041224938651739",
"global_name": null,
"flags": 0,
"email": null,
"discriminator": "0839",
"bot": true,
"avatar": null
},
"session_type": "normal",
"session_id": "57dc137d881caef544d7b9a7024a788d",
"resume_gateway_url": "wss://gateway-us-east1-b.discord.gg",
"relationships": [],
"private_channels": [],
"presences": [],
"guilds": [
{
"unavailable": true,
"id": "1204212039896277093"
}
],
"guild_join_requests": [],
"geo_ordered_rtc_regions": [
"india",
"dubai",
"hongkong",
"singapore",
"tel-aviv"
],
"auth": {},
"application": {
"id": "1218041224938651739",
"flags": 16777216
*/