ITOH
c91c9d0870
types: remove entire types ( #684 )
2021-03-23 19:14:26 +04:00
ITOH
372dc9988b
fix(controllers/READY): reimplement guild cache mechanism ( #647 )
...
* add lastShardID
* fix ready event controller
* forgot to push this file
* move ready to its own file
* some changes
* Update READY.ts
* some changes idk if they are good
* Update options.ts
* Update READY.ts
* Update guilds.ts
2021-03-11 18:09:59 +04:00
ayntee
45a3246370
fix(ws/shard): update status update payload ( #559 )
...
* fix(ws/shard): update status update payload
* :(
* Update src/types/discord.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
* it\'s activitypayload
* Update src/types/discord.ts
* idk
* idk
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
2021-03-08 19:41:20 +04:00
ayntee
a6ba23553b
feat(ws/shard): add closeWS() function ( #543 )
...
* feat(ws/shard): add closeWS() function
* foolproof reason lol
* feat(ws/shard): handle 3069 close code
* be less verbose 😂
2021-02-25 22:12:22 +04:00
ayntee
7c404e80f6
refactor: use updated identify payload instead
2021-02-20 23:46:37 +04:00
TriForMine
602a74591e
refactor: resolve promises ( #515 )
...
* Adding missing await and updating some deps
* Adding missing await and updating some deps
* Adding missing await and updating some deps
* Fix close code 4009 until deno fixes the issue: https://github.com/denoland/deno/pull/8776
* Fix heartbeating
* Add await for the requestGuildMembers in requestAllMembers
* Change body && body.file to body?.file
* Fix lint #1
* Change body && body.file to body?.file
* Fix lint
* Deno lint
* Update request.ts
* Fix deno lint error
* Update src/ws/shard_manager.ts
Co-authored-by: ayntee <ayyantee@gmail.com >
* Fix fetchMembers
* Fix getMembersByQuery
* Try to fix RequestMembersQueue processing
* Deno lint
* Fix requestGuildMembers
* Fix requestGuildMembers
* Fix requestAllMembers
* Undo useless changes
* Fix merge conflict
* Fix merge conflict
* Change for loop to Promise.all
* Deno fmt
Co-authored-by: ayntee <ayyantee@gmail.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-02-15 11:19:45 +04:00
ayntee
043fe5c308
fix(ws/shard): use WebSocket#close() instead of WebSocket#send() to close connection ( #518 )
...
* fix(ws/shard): use WebSocket#close() instead of WebSocket#send() to close connection
* Oops forgot the return statement
2021-02-13 12:14:23 +04:00
ayntee
85dfb6778e
fix(ws/shard): pass shardID to sendWS() ( #516 )
2021-02-11 10:31:33 +04:00
ayntee
93b7e57293
feat(ws/shard): add sendWS() ( #514 )
...
* feat(ws/shard): add sendWS()
Closes #513
* Switch the order of the args
* Remove additional info
* Use sendWS()
2021-02-10 18:55:25 +04:00
ayntee
5fe0453897
refactor(ws/shard): rewrite the onclose event listener ( #491 )
2021-01-31 21:02:08 +04:00
ITOH
26f8321ee9
feat(ws): add additional info to wsError debug event ( #434 )
...
* feat(ws): better error debug message
* Update src/ws/shard.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-23 23:16:04 +04:00
Ayyan
e5a8f3b358
chore: setup "deno lint" ( #331 )
...
* chore: setup "deno lint"
* ci(lint): add --unstable flat to lint script
* lint
* lint
* refactor: destructure assignment for Message#guildID
* chore: remove TODO comment
* refactor: remove redundant async
* chore: switch to Deno stable vscode ext
* chore: remove ignore comments
* chore: remove ignore comments
* chore: remove @ts-ignore comment
* fixes
* fixes
* chore: remove deno-lint-ignore comment
* chore: add index signature
2021-01-03 20:12:42 +04:00
TriForMine
484f86638f
refactor: resolve async promises, fixed typos, and used inline variable for return ( #299 )
...
* Added await in async function, fixed typos and used inline variable for return
* Added await in async function, fixed typos and used inline variable for return
* Revert "Added await in async function, fixed typos and used inline variable for return"
This reverts commit f31caf5d
* Added await in async function, fixed typos and used inline variable for return
* Fixes format
* Fixes format 2
* Fixes format 4475757
* Fixes format 878757854786312378657865785785785785
* Change return to await
* Fixing more issues
* Fixing even more issues
* Fixing even more issues +
* Fixes format
2020-12-30 12:31:11 +04:00
Skillz
189dc150f2
rename to mod.ts
2020-12-26 19:30:32 -05:00
Skillz4Killz
e1d115ca0a
fmt
2020-12-27 00:06:16 +00:00
ayntee
69099e04fc
Better debug type
2020-12-26 20:23:57 +04:00
ayntee
2ae07da6db
Rename socket to ws
2020-12-26 19:02:57 +04:00
ayntee
3d3e2f3363
chore: remove todo comment
2020-12-24 17:56:29 +04:00
ayntee
fe43cc8f88
Some updates―renaming interfaces and files
2020-12-23 18:12:12 +04:00
ayntee
321175a72f
Revert "chore: verbose imports"
...
This reverts commit dfe6f371d3 .
2020-12-23 11:03:06 +04:00
ayntee
dfe6f371d3
chore: verbose imports
2020-12-22 22:59:09 +04:00