Commit Graph

22 Commits

Author SHA1 Message Date
ayntee aaed064709 refactor(controllers): separate controllers into different files (#657)
* refactor(controllers): separate controller into files

* add CHANNEL_UPDATE

* guilds

* interactions

* members

* messages

* finally

* done

* fix ci

* fixes
2021-03-11 20:38:27 +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
ITOH 8f8f988e2b fix(structures/channel): empty guildID in Channel struct (#551) 2021-02-26 22:11:02 +04:00
ITOH 15dc027b92 feat(structures/channel): add getters and handlers to Channel struct (#533)
* export CleanVoiceState interface

* feat(structures): channels getter voiceStates

* feat(structures): channels add connectedMembers

* feat(structures): channel add disconnect

* Update channel.ts

* feat(structures): channels add delete

* idk

* feat(structures): channel add editOverwrite

* feat(structures): channel add deleteOverewrite

* feat(structures): channel add edit

* feat(structures): channel add hasPermission
2021-02-21 21:22:52 +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
Ayyan 9564f2d453 types(structures): strong types 💪 (#466) 2021-01-26 10:35:24 +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
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
Ayyan 55f68a242d types(structures): add return type for methods (#341) 2021-01-03 19:12:13 +04:00
Ayyan 8c9a075d30 fix: channels, presences, voiceStates can be undef (#301)
* fix(Guild): presences and voiceStates can be undef

* fix: handle undef Guild#voiceStates

* fix: channels, presences, voice_states can be undef

* Revert "fix: handle undef Guild#voiceStates"

This reverts commit ddd3c32e21.
2020-12-31 19:52:07 +04:00
Skillz 604a714b14 tiny fixes 2020-12-27 11:15:17 -05:00
Skillz c9dc3623f0 fix 2020-12-27 11:11:18 -05:00
Skillz d44309b557 add ban and unban to guild struct 2020-12-27 11:10:10 -05:00
Skillz 189dc150f2 rename to mod.ts 2020-12-26 19:30:32 -05:00
Skillz 0cfdb5fd43 fix guild struct 2020-12-26 19:26:09 -05:00
Skillz4Killz e1d115ca0a fmt 2020-12-27 00:06:16 +00:00
Skillz4Killz 4f12969cd8 fmt 2020-12-26 23:35:58 +00:00
Skillz4Killz 6e924f4ee6 add guild stuff 2020-12-26 22:41:28 +00:00
ayntee 7d183b9bef Merge branch 'next' of https://github.com/discordeno/discordeno into getters 2020-12-22 22:06:41 +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