Commit Graph

29 Commits

Author SHA1 Message Date
ayntee
e1a9565045 test: use createChannel() 2021-03-19 15:54:34 +04:00
ayntee
e7bbaa4a2f test(utils): rename test cases 2021-03-15 16:00:43 +04:00
ayntee
69b79419ab ci: fix test workflow 2021-03-15 15:33:45 +04:00
ayntee
ba2363618e deps: update to latest (#656) 2021-03-11 17:46:06 +04:00
ITOH
2c3692810d refactor(structures): rename create* functions (#395)
* structures: rename structure create functions

* fix: errors occured because of structure rename

* fix(controllers): errors occured because of structure rename

* fix

* fix createServer to createGuild rename

* rename create*structure to create*Struct

* update docs

* Phew

* rename createguildrole

* fix that

* fmt?

* idk

* why

* fixxess

* Update member.ts

* Update member.ts

* ahh found it

* revert this

* Update mod.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-08 20:37:06 +04:00
ITOH
ebc48156aa feat(handlers/guild): change createGuildChannel() to use guild ID (#528)
* guild > guildID

* fix(test): createGuildChannel test

* Update test/mod.test.ts

* Update test/mod.test.ts

* fmt

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-08 18:23:04 +04:00
ITOH
25858b3144 feat(util): add camelToSnakeCase() & snakeToCamelCase() (#615)
* feat(util): add to camel/snake case functions

* add tests

* hmm

* add lint ignore comment

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 18:51:59 +04:00
ayntee
c6ce5f7269 test: set sanitizeExit to false 2021-03-04 09:30:27 -05:00
ayntee
585ed283fe test(main): remove auto-deletion of guilds 2021-03-01 21:57:59 +04:00
ayntee
832cb63460 test(main): close websocket instead of Deno.exit() (#560) 2021-03-01 20:56:17 +04:00
ayntee
a72bf9bb2e test: remove weird workaround (#556) 2021-02-28 00:05:01 +04:00
ayntee
03ffb63f0f build: update dependencies to latest (#550) 2021-02-26 14:54:07 +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
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