ayntee
d78115a4be
chore: update @evan/wasm to 0.0.40
2021-02-01 15:50:06 +04:00
ayntee
e1bc686a66
Revert "feat(rest/request_manager): support for multiple attachments ( #484 )" ( #498 )
...
This reverts commit 34ce39697a .
2021-02-01 13:25:47 +04:00
ayntee
8ab42a6b95
chore: update deps ( #496 )
2021-02-01 12:27:13 +04:00
ayntee
5fe0453897
refactor(ws/shard): rewrite the onclose event listener ( #491 )
2021-01-31 21:02:08 +04:00
ITOH
37ea1ef6ba
fix(controllers): delete role from cache before emitting the "roleDelete" event ( #494 )
2021-01-31 20:51:51 +04:00
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
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
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
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
683900236f
Remove tests
2021-01-26 13:16:53 +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
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
ITOH
36294b5451
fix(handlers): add editSlashResponse() ( #399 )
...
* update: editSlashResponse
* remove breaking changes
2021-01-25 19:09:48 +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
ayntee
e455ba1655
Revert "refactor(util): use getter instead ( #432 )"
...
This reverts commit 8d5803c82a .
2021-01-25 15:09:02 +04:00
Ayyan
8b69ae0b97
fix: valid type for "member" in "interactionCreate" event ( #446 )
...
* fix(controllers): change return value of INTERACTION_CREATE event
* Revert "fix(controllers): change return value of INTERACTION_CREATE event"
This reverts commit 9bc52d2ebf .
* type :)
2021-01-25 00:25:08 +04:00
ITOH
b7557050a6
feat(handlers): add editWebhook*(), deleteWebhook*(), getWebhook*() ( #438 )
...
* feat(handlers): add getWebhookWithToken
* Update webhook.ts
* remove(utils): dry constants
* feat(handlers): add more webhook functions
* move functions arround
* well that function is not needed
* better return types
* Apply suggestions from code review
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-24 23:57:27 +04:00
Ayyan
417315f89e
feat: add rateLimit event ( #447 )
...
* fix(controllers): change return value of INTERACTION_CREATE event
* feat: add rateLimit event
Closes https://github.com/discordeno/discordeno/issues/349
* Revert "fix(controllers): change return value of INTERACTION_CREATE event"
This reverts commit 9bc52d2ebf .
* https://open.spotify.com/track/6fxVffaTuwjgEk5h9QyRjy
2021-01-24 23:04:34 +04:00
ITOH
1c6d5a60e0
feat(handlers): add upsertSlashCommands() ( #442 )
...
* feat(handlers): add bulk upsert commands function
* Update mod.ts
* add jsdoc
* add ID info
* ID is optional
* Update webhook.ts
* use //@ts-ignore
* idk
2021-01-24 22:41:28 +04:00
Ayyan
2a78e1b92e
fix(controllers): cache member in "members" table ( #445 )
2021-01-24 21:15:55 +04:00
ITOH
51387c5705
refactor(util): COMMANDS_GUILD_ID constant arg order ( #440 )
...
* fmt
* refactor(util): change arg order for COMMANDS_GUILD_ID
* refactor(handlers): change arg order for COMMANDS_GUILD_ID
* feat(handlers): add getSlashCommand function
* Update mod.ts
* remove that
2021-01-24 15:12:40 +04:00
ITOH
e952d1d9cb
feat(handlers): add getSlashCommand() ( #444 )
2021-01-24 14:55:09 +04:00
ITOH
fada547388
fix(handlers): edit/upsertSlashCommand function ( #441 )
...
* fix(handlers): editSlashCommand function
* this check is needed
* fix(handlers): upsertSlashCommand function
* fmt
* add deprecated note
* up
* full use of options
* after thinking it is better not
2021-01-24 14:53:37 +04:00
ITOH
8d8c792747
feat(handlers): add getInvite() & deleteInvite() ( #421 )
...
* feat(handlers): add getInvite
* feat(handlers): add deleteInvite
* remove deving things
* add jsdoc
* move functions up
* import got deleted
* feat(handlers): invite better types
* throw enum error
* remove unnecessary checks
* Update mod.ts
* channel exists since botHasChannelPermissions did not throw any error
2021-01-23 23:33:12 +04:00
ITOH
c281665961
fix: use applicationID for slash commands instead of botID ( #437 )
...
* add(bot): ApplicationID let & setApplicationID function
* fix(controllers): set application id when bot is ready
* refactor(util): rename botID argument to applicationID
* fix(handlers): use applicationID
2021-01-23 23:19:12 +04:00
ITOH
55235e5ea0
feat(handlers): add getTemplate() ( #422 )
...
* feat(handlers): getTemplate
* update jsdoc
* redirect this function
* remove getGuildTemplate
* Update src/api/handlers/guild.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* remove breaking change
* save in const
* Update src/api/handlers/guild.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* Update src/api/handlers/guild.ts
* Update src/api/handlers/guild.ts
* Update mod.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-01-23 23:17:50 +04:00
ITOH
f6f435bb1f
feat(handlers): add getAvailableVoiceRegions() ( #425 )
...
* add voice endpoint
* feat(handlers): add getVoiceRegions
* Update mod.ts
* remove breaking changes
2021-01-23 23:17:11 +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
ITOH
f70a989a21
types: better types ( #413 )
...
* Update cache.ts
* Update shard_manager.ts
2021-01-23 23:15:11 +04:00
ITOH
76e0395319
fix(handlers): add missing handlers ( #436 )
2021-01-23 23:13:06 +04:00
ITOH
8beb036741
feat(handlers): add getGatewayBot() & getApplicationInformation() ( #428 )
...
* feat(handlers): add getGatewayBot()
* refactor(bot): use getGatewayBot() to get gateway data
* feat(handlers): add getApplicationInformation
* add(handlers): getApplicationInformation jsdoc
* Add oauth required types
* create separate file
* delete misc
* OAuthApplication
* forgot to update import
* idk why that was here
2021-01-23 14:51:35 +04:00
ITOH
62af388820
fix(controllers): update cache with new value in gateway events ( #433 )
...
* fix(controllers): cache updated member
* fix(controllers): cache update guild
* fix(controllers): cache user update
* fix(controllers): cache voice state update
* refactor(controllers): message reaction add remove previousReactions
* refactor(controllers): message reaction remove remove previousReactions
* fix(controllers): cache message reaction remove all
* fix(controllers): cache message reaction remove emoji
* fix(controllers): cache guild role create
* fix(controllers): role delete event update cache and return eventHandler
* fix(controllers): cache role update
* don't return eventHandlers
* don't return eventHandlers
2021-01-22 19:20:33 +04:00
Ayyan
8d5803c82a
refactor(util): use getter instead ( #432 )
2021-01-21 22:47:46 +04:00
ayntee
8fc6089386
refactor: remove index signatures
2021-01-21 22:34:26 +04:00
Ayyan
14ca3e1267
refactor: remove index signatures ( #431 )
2021-01-21 22:20:53 +04:00
ITOH
61f2e1592b
fix(controllers): cache updated message on MESSAGE_UPDATE ( #429 )
...
* fix(controllers): cache message on update event
* forgot to paste that in
2021-01-21 22:05:32 +04:00
ITOH
3c93237976
refactor(util): remove GUILD_INTEGRATION_CREATE endpoint ( #430 )
2021-01-21 21:23:02 +04:00
ITOH
e62b52d160
feat(handlers): check for message max delete days ( #416 )
...
* check prune max days
* patch(handlers): max days is 30
* change in description too
* fix: merge problems
2021-01-21 10:57:05 +04:00