Commit Graph

1317 Commits

Author SHA1 Message Date
ITOH
fe746be64f fix(controllers/roles): emit roleDelete only once (#486)
* Update roles.ts

* delete role after event

* Update roles.ts

* Update roles.ts
2021-01-30 22:58:30 +04:00
ayntee
0004e3ecf0 docs: update boilerplate link (#492) 2021-01-30 18:26:09 +04:00
ayntee
2fc067b26d Revert "feat(handlers): add Membership Screening" (#490)
* Revert "feat(handlers): add Membership Screening (#449)"

This reverts commit 6599636dbc.

* Remove type definitions
2021-01-30 15:23:29 +04:00
ayntee
f1b095eb54 style: fix lint warnings (#489)
* style: fix lint warnings

* style: fix lint warnings
2021-01-30 15:07:14 +04:00
ayntee
34ce39697a feat(rest/request_manager): support for multiple attachments (#484)
* feat(rest/request_manager): support for multiple attachments

Closes #483

* Use .map() instead of forEach()
2021-01-28 20:27:47 +04:00
ITOH
3184746008 fix(controllers/messages): "messageUpdate" event not returning the new message (#482) 2021-01-28 18:39:58 +04:00
ayntee
79089d239b fix(util/permissions): include guild ID while resolving bits (#481)
Closes #480
2021-01-28 13:58:24 +04:00
ayntee
53cb2611c0 docs(CONTRIBUTING): separate bad PR title examples 2021-01-28 13:56:42 +04:00
ayntee
c87f4f8000 test: move token to main test 2021-01-27 22:20:30 +04:00
ITOH
c3d7235918 feat(handlers): add getMembers() (#412)
* Update guild.ts

* add types

* forgot to import

* review things

* Update mod.ts

* Apply suggestions from code review

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* remove redundant code

* Update guild.ts

* Paginate

* remove extra ()

* dont log if limit is < 1000

* thats unnecessary too

* Update guild.ts

* add sugg

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2021-01-27 18:57:49 +04:00
ayntee
09bca99955 feat(controllers/interactions): add APPLICATION_COMMAND_{CREATE,UPDATE,DELETE} events (#479)
* feat(controllers/interactions): add APPLICATION_COMMAND_{CREATE,UPDATE,DELETE} gateway events

Reference: https://github.com/discord/discord-api-docs/pull/2367/

* chore: add events to controllers obj
2021-01-27 18:57:16 +04:00
ITOH
9b39112ab1 fix(controllers/misc): use cacheHandler in ready event (#477) 2021-01-27 18:55:39 +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
4464be4781 ci(test): remove repetitive --allow-env flag 2021-01-27 12:10:16 +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
9a731f0a1d ci(test): add --allow-env flag 2021-01-27 11:54:15 +04:00
ayntee
07bf620ffa ci: separate local tests 2021-01-27 11:45:19 +04:00
ayntee
3496aa15b0 style: format README.md 2021-01-27 11:02:05 +04:00
ayntee
3d65fa7d8d docs(README): omit repetitive sentences 2021-01-27 11:01:03 +04:00
ayntee
36a3b06bb2 docs(README): add logo 2021-01-27 10:59:02 +04:00
Ayyan
e72fbe3b82 Delete PULL_REQUEST_TEMPLATE.md 2021-01-26 19:24:09 +04:00
Ayyan
6599636dbc feat(handlers): add Membership Screening (#449)
* feat(handlers): support membership screening feature

* s
2021-01-26 19:20:06 +04:00
Ayyan
9e389981aa feat(controllers): add membershipScreeningPassed event (#467)
* feat(controllers): add membershipScreeningPassed event

* strict comparison :)

* idk

* Update src/api/controllers/members.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* s

* Remove pending eosidhfgroeirfiheofwq

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2021-01-26 19:19:57 +04:00
Ayyan
7cd4fda3f4 feat(controllers): add INTEGRATION* gateway events (#459)
* feat(controllers): add INTEGRATION* gateway events

* suggestions

* forgive me, i am forgetful :P

* Update src/types/options.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2021-01-26 18:32:43 +04:00
ayntee
8b3f9a5818 docs(README): fix the slash commands boilerplate link 2021-01-26 13:23:48 +04:00
Ayyan
25d05ba66e Revert "feat(util): add camelToSnakeCase() & snakeToCamelCase() (#473)" (#474)
This reverts commit 95a2b7a74d.
2021-01-26 13:19:39 +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
ayntee
a3d154e13e Revert "ci: run on workflow_dispatch"
This reverts commit 979801147c.
2021-01-26 12:48:28 +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
ayntee
979801147c ci: run on workflow_dispatch 2021-01-26 12:41:16 +04:00
ITOH
0f57ed3227 test: await all handlers (#472) 2021-01-26 12:21:50 +04:00
ayntee
f6cf47fcbe docs(README): replace slash commands boilerplate link 2021-01-26 12:20:00 +04:00
ayntee
217d62d7b1 ci: fix syntax error 2021-01-26 12:08:30 +04:00
ayntee
bcc7e1f631 ci: remove indentation* 2021-01-26 12:06:45 +04:00
ayntee
dc6e96f5f8 Intend :) 2021-01-26 12:04:55 +04:00
Ayyan
b164d0bf4f ci: add matrix testing (#471)
* ci: add matrix testing

* idk
2021-01-26 12:03:19 +04:00
Ayyan
0fd258d834 Attempt to fix CI (#470) 2021-01-26 11:47:41 +04:00
ITOH
7c3743e024 refactor(handlers): resolve RequestManager.<method> using await before returning the value (#468)
* Update channel.ts

* Update gateway.ts

* Update guild.ts

* Update member.ts

* Update message.ts

* Update oauth.ts

* Update webhook.ts

* move things arrouond

* Update guild.ts

* Update src/api/handlers/webhook.ts

* stop linter complains

* add this back

Co-authored-by: Ayyan <ayyantee@gmail.com>
2021-01-26 11:43:45 +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
Ayyan
9564f2d453 types(structures): strong types 💪 (#466) 2021-01-26 10:35:24 +04:00
ayntee
f60cfc417e docs(gettingstarted): update tutorials 2021-01-25 23:35:46 +04:00
ayntee
4a80532792 docs: improve wording 2021-01-25 23:31:52 +04:00
ITOH
36294b5451 fix(handlers): add editSlashResponse() (#399)
* update: editSlashResponse

* remove breaking changes
2021-01-25 19:09:48 +04:00
Ayyan
9677624951 docs(CONTRIBUTING): improve wording & add sections (#456)
* docs: improve wording & add sections

* idk

* inclusive code

* fmt
2021-01-25 17:24:52 +04:00
ITOH
ce33790d97 fix(util): use custom cache instead of default cache (#461)
* Update permissions.ts

* fixe that
2021-01-25 17:24:33 +04:00