ayntee
906fba7763
fix(controllers/guilds): clear members in GUILD_DELETE event ( #648 )
...
* fix(controllers/guilds): clear members in GUILD_DELETE event
* idk
* idk
* Update src/api/controllers/guilds.ts
* Update src/api/controllers/guilds.ts
* Update src/api/controllers/guilds.ts
* Update src/api/controllers/guilds.ts
* Update src/api/controllers/guilds.ts
* Update src/api/controllers/guilds.ts
* Update src/api/controllers/guilds.ts
* deno fmt
* Update src/api/controllers/guilds.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
* deno fmt again
* idk
* Update src/api/controllers/guilds.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
2021-03-11 18:01:44 +04:00
ayntee
5566046fed
refactor(controllers): remove redundant DiscordPayload#t check ( #653 )
2021-03-10 23:38:28 +04:00
ayntee
1624faac7f
style: format files
2021-03-10 22:23:37 +04:00
ayntee
79ca200378
feat(controllers): add GUILD_INTEGRATIONS_UPDATE controller ( #650 )
...
* feat(controllers/guilds): add GUILD_INTEGRATIONS_UPDATE controller
* Whoops
* guild obj :)
* sep file
* Update src/api/controllers/guilds.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
2021-03-10 20:28:26 +04:00
ayntee
aa27808bfc
feat(controllers): add CHANNEL_PINS_UPDATE controller ( #651 )
...
* feat(controllers/channels): add CHANNEL_PINS_UPDATE controller
* sep file
* Update src/api/controllers/channels.ts
* Update src/api/controllers/CHANNEL_PINS_UPDATE.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
* Update src/api/controllers/CHANNEL_PINS_UPDATE.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
2021-03-10 20:28:11 +04:00
ayntee
26019cbfd1
feat(controllers): add VOICE_SERVER_UPDATE event ( #652 )
2021-03-10 20:27:32 +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
ayntee
fdab0d93ba
feat: change Guild.emojis to use collection ( #388 )
...
* feat(guild): change Guild.emojis to use collection
* idk
2021-03-08 18:13:01 +04:00
ayntee
ce99dc3e0a
fix: remove structure automatic caching ( #517 )
...
* fix: remove structure automatic caching
* Update src/api/controllers/interactions.ts
* Update src/api/controllers/interactions.ts
* Update src/api/controllers/interactions.ts
* memb -> member
* rename shit
* Update src/api/controllers/misc.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
* idk
* Update src/api/handlers/guild.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
* fmt
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
2021-02-12 22:18:05 +04:00
ITOH
043df68de8
fix(controllers/guild): guildDelete listener not emitted & guildUpdate listener caching irrelevant fields ( #512 )
...
* Update guilds.ts
* Update guilds.ts
* fix my stupidness
* remove the logs
* delete guild after check
2021-02-09 22:00:29 +04:00
ayntee
051087f5bb
feat(controllers/misc): add inviteCreate & inviteDelete listeners ( #504 )
...
Closes #501
2021-02-04 10:59:42 +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
ITOH
3184746008
fix(controllers/messages): "messageUpdate" event not returning the new message ( #482 )
2021-01-28 18:39:58 +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
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
Ayyan
2a78e1b92e
fix(controllers): cache member in "members" table ( #445 )
2021-01-24 21:15:55 +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
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
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
fb409b71b6
fix(controllers): check if the cached content is same as the updated content ( #426 )
2021-01-20 21:52:47 +04:00
ITOH
26368ef8e0
feat(controllers): cache updated guild object with new emojis ( #414 )
2021-01-20 13:45:42 +04:00
Skillz4Killz
cc21a500ad
Update misc.ts
2021-01-09 16:10:19 -05:00
Skillz4Killz
5b01d331a2
Update misc.ts
2021-01-09 16:09:56 -05:00
Ayyan
cd7973273e
fix(misc): check whether guilds' loaded every 2s ( #353 )
...
* fix(misc): check whether guilds' loaded every 2s
* unavailable_guilds -> guilds
* guilds -> unavailable_guilds
* Separate unavailable guild type
* Clean up and apply suggested changes
2021-01-09 21:39:25 +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
ayntee
c10ef62c6c
fix: replace incorrect check for GUILD_UPDATE controller
2021-01-02 13:36:15 +04:00
Ayyan
ae9e14bf25
fix: separate event for APPLICATION_COMMAND_CREATE ( #322 )
...
* fix: separate event for APPLICATION_COMMAND_CREATE
* Change the name of the event
* Revert "Change the name of the event"
This reverts commit dc6744ed9f .
* Remove payload variable
* idk
2021-01-02 09:26:57 +04:00
Ayyan
02c0466760
fix: remove role from coll after the event ( #304 )
...
* fix: remove role from coll after the event
* fix: check if cachedRole is not nil
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2020-12-31 11:41:17 +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
65d3789742
fix: nonce bug not resolving requests
2020-12-27 09:47:00 -05:00
Skillz
ef938ca4ed
fixes
2020-12-26 20:16:11 -05:00
Skillz
189dc150f2
rename to mod.ts
2020-12-26 19:30:32 -05:00
ayntee
8e3fab7411
fix: remove util/cdn export
2020-12-24 17:59:15 +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
ayntee
b353987809
fix: update import paths
2020-12-22 22:10:33 +04:00
Skillz4Killz
19f228c329
feat: slash commands and interactions ( #248 )
...
* start slash commands
* lil bit of this
* a little bit of that
* chore: add slash commands' types (#249 )
* Add slash Types
* style: format source files
* interaction create event
* make it a valid controller
* respond to a slash command
* interactions
* shtuff
* gotta get them all
* you gotta hit the bullseye
* you gotta survive
* most important thing i forgot
* please keep this
* more shuttttfgvuasdafwesdvjzdk
* more endpoints
* TYPO
* making that party jam
* this is my jam
* refactor: move slash commands types to webhook.ts (#250 )
* Move Types
* Move to webhook.ts types file
* Update webhook.ts
* fix: update ExecuteSlashCommandOptions (#252 )
* Move Types
* idk
* Remove Unnecessary Comment
* details
* http side of slash
* Format
* idk
* cleanup
* fmt
* fix imports
* tet
* remove log
* Update interactions.ts
* Update interactions.ts
* Update interactions.ts
* Use tweetnacl_deno for verification
* chore: move tweetnacl import to deps.ts
* Update deps.ts
* deps: use tweetnacl from GitHub
* fix: use serverOptions.slashHexKey
* fix: res -> req
* fix: use TextEncoder
* deps: add std@0.81 .0/encoding/hex.ts
* chore: use encode() from std/encoding/hex.ts
* I am using the GitHub online editor pls help
* Update deps.ts
* Update interactions.ts
* Update interactions.ts
* Update interactions.ts
* Update interactions.ts
* fix: respond with 400 if timestamp and signature not present
* style: format files
* refactor!: merge createServer() into startServer()
* style: format files
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
Co-authored-by: ayntee <ayyantee@gmail.com >
2020-12-22 21:39:01 +04:00
Ayyan
e49a23687e
refactor!: organize directories and files ( #268 )
...
* refactor!: organize directory structure
* fix: avoid stack overflow err
* chore: swtch back to std/encoding for base64
* style: format source files
2020-12-22 21:26:27 +04:00