Commit Graph

17 Commits

Author SHA1 Message Date
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
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
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
26368ef8e0 feat(controllers): cache updated guild object with new emojis (#414) 2021-01-20 13:45:42 +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
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
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
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