Madeline
09f5b4f0bb
Fix identify throwing on invalid token instead of closing with auth failed close code
2023-09-02 21:05:27 +10:00
Madeline
2fc3c5dbd4
sentry db instrumentation for gateway events
2023-09-02 20:18:38 +10:00
Madeline
8a7ee8c8a9
what the fuck is session_id: "all"???
2023-08-21 23:57:44 +10:00
Madeline
ccc774168a
Close #1091
2023-08-21 23:28:36 +10:00
Madeline
271460b02f
Gateway close if user could not be fetched just send ID
2023-08-08 11:26:32 +10:00
Madeline
53aed18652
remove pomelo disclose, to be added in pomelo impl pr
2023-08-01 20:23:00 +10:00
Madeline
45e7d763cf
lazyrequest dont crash when no members can be found in lazyrequest
2023-07-31 20:59:06 +10:00
Madeline
4c0b1391b1
send empty READY_SUPPLEMENTAL for client compatibility
2023-07-31 19:42:27 +10:00
Madeline
a0d93fb252
* call toJSON of keys in gateway when using erlpack
...
* dont send bitrate/etc as null when should be undefined
* set user flags to number instead of string
* send empty 'threads' in identify when not using new state v2
2023-07-29 16:59:21 +10:00
Madeline
f1f68c3d31
refactor checkToken
2023-07-28 09:26:18 +10:00
Madeline
8a3989c297
Merge branch 'master' into feat/refactorIdentify
2023-07-28 08:24:15 +10:00
Madeline
bf079ffa7a
Merge pull request #1066 from Zert3x/master
...
Fix a typo
2023-06-14 18:30:16 +10:00
Zert3x
09b163f8de
Update Connection.ts
2023-05-28 21:40:21 -04:00
V3L0C1T13S
564d1a2fc9
feat: implement member list id generation
2023-05-24 12:02:03 -04:00
Puyodead1
0d666732c6
oapi: bug fixes
2023-04-13 15:41:23 -04:00
Madeline
5a6cb33f5e
Merge branch 'master' into feat/refactorIdentify
2023-04-13 19:45:44 +10:00
Madeline
f040caa712
Merge pull request #1026 from ochen1/patch-3
...
Add support for Discord's new endpoints to update roles
2023-04-11 13:20:09 +10:00
Madeline
debfaea866
Use partition func instead + use Promise.all
2023-04-11 12:56:32 +10:00
ochen1
7327669672
Send guild name and icon of guild through Identify gateway opcode
...
These properties are mandatory as per the documentation:
https://discord.com/developers/docs/resources/guild#guild-object
2023-04-09 11:13:28 -06:00
Madeline
df696d362a
Close if already identified
2023-04-05 20:47:47 +10:00
Madeline
3e9e8aac3b
Don't send random read state / guild settings version numbers
2023-04-04 00:16:10 +10:00
Madeline
a476319fb4
Send d: {} in heartbeat ack
2023-04-04 00:15:37 +10:00
Madeline
6ee26082ef
Respect CLIENT_STATE_V2 capability
2023-04-03 23:50:48 +10:00
Madeline
218f71b82c
Merge branch 'master' into refactor/dev/connections
2023-04-02 10:55:17 +10:00
Madeline
d944dd4ef4
allow all role props through ready
2023-04-01 19:49:54 +11:00
Madeline
13dedb6d25
Merge branch 'master' into feat/refactorIdentify
2023-04-01 19:04:22 +11:00
Madeline
095cbf7b20
Remove ALL fosscord mentions
2023-03-31 15:52:33 +11:00
Madeline
8b2faf0b18
SPACEBAR
2023-03-31 02:15:42 +11:00
Madeline
64e747a4d2
SPACEBAR
2023-03-31 02:05:02 +11:00
Puyodead1
5a7765c7dc
prettier
2023-03-18 19:50:38 -04:00
Puyodead1
21bfda32e4
add connections
2023-03-18 19:09:51 -04:00
Madeline
f228561f4c
Initial identify rewrite
2023-03-13 19:02:52 +11:00
Madeline
51fe1b8955
send required_action in gateway for when email verification is required
2023-02-24 23:46:52 +11:00
Madeline
eee98516dd
Fix gateway encoding Date objects as {} when using erlpack. Fixes NaN/NaN/NaN timestamps in desktop client
2023-02-21 12:01:49 +11:00
Madeline
c59af81563
Fix a bug prevent connections using erlpack ( #977 )
2023-02-16 19:31:36 +11:00
Madeline
da20866967
Use erlpack instead of @yukikaze-bot/erlpack ( #968 )
2023-02-01 13:00:04 +11:00
Madeline
d4d1ab181e
subscribe clients to member events when they lazy request members
2023-01-30 20:23:35 +11:00
Madeline
ac51849f28
question mark.
2023-01-30 20:05:07 +11:00
Madeline
1c4cb721be
Impl member lazy request ( #970 )
2023-01-30 19:57:00 +11:00
Madeline
ac7a178f88
Fix SIGTERM handler not disconnecting gateway clients and leaving timeouts active
2023-01-26 14:29:33 +11:00
Madeline
084dc0be08
Add ESLint ( #941 )
...
* Add eslint, switch to lint-staged for precommit
* Fix all ESLint errors
* Update GH workflow to check prettier and eslint
2023-01-20 18:10:47 +11:00
Madeline
1ab279e2ef
Don't fetch the emoji owner in identify, as this causes mass-disconnects with large emoji counts.
...
TODO: Remove some additional emoji props from being sent (user_id for example)
2023-01-18 20:16:49 +11:00
Madeline
0e7f127ece
Script to add license preamble to each file. Also, does that. ( #935 )
...
* Add script to automatically add license to each file
* Add license preamble to each file.
* Fix existing preamble detection breaking due to line endings. Git :(
* Prevent license from being added to code with other licenses
2023-01-18 13:05:49 +11:00
V3L0C1T13S
eb2f6ab79a
send GUILD_CREATE after READY event ( #938 )
...
* Fix lazy guilds being sent before READY event
* Make casing consistent
2023-01-17 15:44:29 +11:00
Madeline
f544c6890c
Fix dumping incoming messages
2023-01-13 13:49:58 +11:00
Madeline
3bbf997295
Dont send sessions replace or presence update for unidentified users
2023-01-13 13:44:19 +11:00
TheArcaneBrony
6122374e4d
Dev/post refactor fixes ( #927 )
...
* Re-introduce outgoing message logging
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Websocket dumping
* Sentry user count on API
* Generate session ID upon opening websocket, fix gateway dumps
* Async file io in src/gateway/events/Message.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Async file io in src/util/util/Config.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Make pre-commit hook executable
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Fixed sync file io in src/util/util/Config.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Fixed missing await call in src/util/util/AutoUpdate.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Add comment to src/gateway/events/Connection.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Clean up gateway dumping code
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2023-01-12 23:46:36 +11:00
Madeline
da9ce34933
Temp fix for DMs
2023-01-12 00:32:24 +11:00
Madeline
7fc3634211
https://discord.com/channels/806142446094385153/898197424340860928/1062404340427534446
2023-01-11 14:32:30 +11:00
Madeline
2f065e6b37
Move sentry init to util. use sentry in each module, not just bundle
2023-01-10 13:20:37 +11:00