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
ayntee
724f09b4f7
refactor(handlers/guild): rename roles option to includeRoles ( #654 )
2021-03-10 20:27:12 +04:00
ITOH
4adf11b7b7
feat(handlers/guild): add getWidget() & getWidgetImageUrl() ( #420 )
...
* feat(handlers): more get Widget functoins
* forgot image jsdoc
* only needed inside if
* Update mod.ts
* move inside if
* gonna do that
* Update src/api/handlers/guild.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-03-08 20:41:46 +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
ITOH
42c743421b
refactor(handlers/guild): rename guild widget functions ( #386 )
...
* Update guild.ts
* Update guild.ts
* this should be named getWidgetSettings
* update mod imports
2021-03-08 18:51:12 +04:00
ITOH
ebc48156aa
feat(handlers/guild): change createGuildChannel() to use guild ID ( #528 )
...
* guild > guildID
* fix(test): createGuildChannel test
* Update test/mod.test.ts
* Update test/mod.test.ts
* fmt
Co-authored-by: ayntee <ayyantee@gmail.com >
2021-03-08 18:23:04 +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
537d508cfa
feat(types/guild): add computePruneCount to PruneOptions ( #605 )
...
* fix(handlers/guild): rewrite and rename pruneMembers()
* remove breaking change
* Update src/api/handlers/guild.ts
* Update src/types/guild.ts
* Update src/types/guild.ts
* Update src/types/guild.ts
* Update src/api/handlers/guild.ts
* Update src/api/handlers/guild.ts
* Update src/api/handlers/guild.ts
* Update src/types/guild.ts
* Update src/types/guild.ts
* Update src/types/guild.ts
* Update src/api/handlers/guild.ts
* Update src/api/handlers/guild.ts
* Update src/api/handlers/guild.ts
* fmt
* fixes
* Update src/types/guild.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* fmt
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-03-07 21:30:33 +04:00
TriForMine
602a74591e
refactor: resolve promises ( #515 )
...
* Adding missing await and updating some deps
* Adding missing await and updating some deps
* Adding missing await and updating some deps
* Fix close code 4009 until deno fixes the issue: https://github.com/denoland/deno/pull/8776
* Fix heartbeating
* Add await for the requestGuildMembers in requestAllMembers
* Change body && body.file to body?.file
* Fix lint #1
* Change body && body.file to body?.file
* Fix lint
* Deno lint
* Update request.ts
* Fix deno lint error
* Update src/ws/shard_manager.ts
Co-authored-by: ayntee <ayyantee@gmail.com >
* Fix fetchMembers
* Fix getMembersByQuery
* Try to fix RequestMembersQueue processing
* Deno lint
* Fix requestGuildMembers
* Fix requestGuildMembers
* Fix requestAllMembers
* Undo useless changes
* Fix merge conflict
* Fix merge conflict
* Change for loop to Promise.all
* Deno fmt
Co-authored-by: ayntee <ayyantee@gmail.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-02-15 11:19:45 +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
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
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
Ayyan
6599636dbc
feat(handlers): add Membership Screening ( #449 )
...
* feat(handlers): support membership screening feature
* s
2021-01-26 19:20:06 +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
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
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
ITOH
11b68981f9
feat(handlers): add getGuildPreview() ( #408 )
...
* add(handlers): getGuildPreview
* update comment
* check if guild is discoverable
* remove checking since getGuild does not work on unjoined guilds
2021-01-20 14:22:04 +04:00
ITOH
874f1ee979
feat(handlers): add getEmoji() & getEmojis() ( #406 )
...
* add(handlers): getEmojis
* add(handlers): getEmoji
* fix cache
* addToCache argument
* addtocache default to true
* Update guild.ts
* remove this
* Update src/api/handlers/guild.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/api/handlers/guild.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-20 13:46:35 +04:00
ITOH
2cc513b874
feat(handlers): add editChannelOverwrite() & deleteChannelOverwrite() ( #403 )
...
* add editChannelOverwrite function
* remove body constant
Co-authored-by: Ayyan <ayyantee@gmail.com >
* format
* Update src/api/handlers/guild.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/api/handlers/guild.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* add deleteChannelOverwrite function
* Mark permission in jsdoc
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-20 13:43:35 +04:00
ITOH
727a60551a
feat(handlers): inhibitors for deleteChannel() ( #401 )
...
* better deleteChannel function
* throw error if guild wasn't found
* remove dm close ability
* change this comment again
* guildID should be first
2021-01-19 18:20:12 +04:00
ITOH
8b663ca4de
refactor(util): update endpoints ( #383 )
...
* Update constants.ts
* fiiiixxxx
* dupe
* Update src/util/constants.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* USER_DM
* fix this and remove that
* Update src/util/constants.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update constants.ts
* Update src/util/constants.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/constants.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* need these
* hmm
* rename GUILD_EMBED to GUILD_WIDGET
* idk
* Update src/util/constants.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update constants.ts
* Update constants.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-17 20:34:34 +04:00
Skillz4Killz
cd0347a5e1
feat: standalone rest server ( #290 )
...
* feat: standalone rest server
* desc
* fmt
* <3 vlad
* Update src/rest/README.md
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/rest/README.md
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update README.md
* Update src/rest/deps.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/rest/queue.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* chore: ignore no-explicit-any rule
* fix(rest): replace with correct import paths
* deno fmt
* fixes
* fmt
* use user agent cons
* fix typings
* Update src/rest/cache.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/rest/cache.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-09 21:53:14 +04:00
Ayyan
27fb44128f
refactor: replace "return await" ( #354 )
2021-01-09 21:48:02 +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
6e1afa13a4
docs(handlers): add jsdoc comment block ( #313 )
...
* docs(handlers): add jsdoc comment block
* style: format files
2020-12-31 19:51:42 +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