Commit Graph

17 Commits

Author SHA1 Message Date
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
8ab42a6b95 chore: update deps (#496) 2021-02-01 12:27:13 +04:00
ayntee
c87f4f8000 test: move token to main test 2021-01-27 22:20:30 +04:00
ayntee
a1e0a4532e test(api): delete all guilds if the guilds count >= 10 2021-01-27 12:16:14 +04:00
ayntee
c46e64d1d5 test(api): delete all guilds if the guilds count >= 10 2021-01-27 12:15:07 +04:00
ayntee
520f1c194f test: do not pass default test options for exiting the process 2021-01-27 12:08:53 +04:00
ayntee
cc0b83a40c test: add test for startBot() 2021-01-27 12:02:01 +04:00
ayntee
9e9a94e064 test: pass default test options 2021-01-27 11:57:18 +04:00
ayntee
07bf620ffa ci: separate local tests 2021-01-27 11:45:19 +04:00
ayntee
683900236f Remove tests 2021-01-26 13:16:53 +04:00
ayntee
0ed7420e01 ci(lint): run workflow for test directory 2021-01-26 12:56:27 +04:00
ITOH
95a2b7a74d feat(util): add camelToSnakeCase() & snakeToCamelCase() (#473)
* Update utils.ts

* add tests

* Update utils.test.ts

* void unnecessary

* Apply suggestions from code review

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update src/util/utils.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update utils.ts

* remove object test

* some name changes

Co-authored-by: Ayyan <ayyantee@gmail.com>
2021-01-26 12:44:25 +04:00
ITOH
0f57ed3227 test: await all handlers (#472) 2021-01-26 12:21:50 +04:00
Ayyan
17959bc1c8 Revert "feat(util): add camelToSnakeCase() & snakeToCamelCase() (#463)" (#469)
This reverts commit 08d685743a.
2021-01-26 10:51:36 +04:00
ITOH
08d685743a feat(util): add camelToSnakeCase() & snakeToCamelCase() (#463)
* Update utils.ts

* add tests

* Update utils.test.ts

* void unnecessary

* Apply suggestions from code review

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update src/util/utils.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update utils.ts

* remove object test

* some name changes

Co-authored-by: Ayyan <ayyantee@gmail.com>
2021-01-26 10:45:30 +04:00
ITOH
e56d67a138 feat: internal intents resolution (#390)
* better intents typing

* Update README.md

* Update mod.test.ts

* support enum too
2021-01-19 12:18:13 +04:00
ayntee
e69d4ac78b ci: another attempt to fix CI 2021-01-15 19:46:05 +04:00