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
ITOH
fb409b71b6
fix(controllers): check if the cached content is same as the updated content ( #426 )
2021-01-20 21:52:47 +04:00
ayntee
251256d1ae
Merge branch 'master' of https://github.com/discordeno/discordeno
2021-01-20 17:20:37 +04:00
ayntee
b3f9287183
style: format files
2021-01-20 17:02:01 +04:00
ITOH
16fab1b925
feat(handlers): add editBotNickname() ( #415 )
...
* feat(handlers): add editBotNickname
* return a var
* Update member.ts
* Update src/api/handlers/member.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update member.ts
* Update member.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
2021-01-20 15:31:48 +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
4ee701b159
feat(handlers): add startTyping() ( #404 )
...
* feat(handlers): triggerTypingIndicator function
* add period
Co-authored-by: Ayyan <ayyantee@gmail.com >
* startTyping is better
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-01-20 13:47:37 +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
26368ef8e0
feat(controllers): cache updated guild object with new emojis ( #414 )
2021-01-20 13:45:42 +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
7db3f65cbd
feat(handlers): add kickFromVoiceChannel() function ( #407 )
2021-01-20 13:21:13 +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
Ayyan
4c9171e72a
fix(handlers): support for custom emoji in reaction remove functions ( #400 )
2021-01-19 18:10:28 +04:00
ITOH
e56d67a138
feat: internal intents resolution ( #390 )
...
* better intents typing
* Update README.md
* Update mod.test.ts
* support enum too
2021-01-19 12:18:13 +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
f665ba4434
Merge pull request #393 from discordeno/optional-dimensions
...
types(message): make attachment dimensions optional
2021-01-15 15:35:11 -05:00
ayntee
292aa470ed
types(message): add 16 & 17 to MessageTypes
2021-01-15 23:22:58 +04:00
ayntee
7d28b550c9
types(message): make attachment dimensions optional
...
Reference: https://github.com/discord/discord-api-docs/pull/2214
2021-01-15 23:07:15 +04:00
Ayyan
5973807e32
docs: add jsdoc comments for event handlers ( #376 )
2021-01-15 16:48:54 +04:00
Skillz
d921d98931
test fix
2021-01-14 14:09:55 -05:00
Skillz
a852624415
remove extra log
2021-01-14 12:47:52 -05:00
Skillz
50f47fece6
test use depth 10 for error
2021-01-14 12:25:52 -05:00
Skillz
be98dcbfa5
fix default avatars
2021-01-14 12:21:46 -05: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
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
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
Ayyan
55f68a242d
types(structures): add return type for methods ( #341 )
2021-01-03 19:12:13 +04:00
Oscar Wos
a72432f7f3
types(message): add APPLICATION_COMMAND to MessageTypes ( #340 )
2021-01-03 09:12:27 +04:00
Skillz4Killz
2d1690a355
Merge pull request #332 from discordeno/patch3
...
fix: outdated pin & unpin handlers and endpoints
2021-01-02 12:49:44 -05:00
Skillz4Killz
188bc0200d
Merge pull request #330 from discordeno/patch2
...
fix: replace incorrect check for GUILD_UPDATE controller
2021-01-02 12:49:10 -05:00
ayntee
b351fe0a90
fix(RoleData): "tags" property can be undefined not null
2021-01-02 19:09:15 +04:00
ayntee
32c3306bf0
fix: outdated pin & unpin handlers and endpoints
2021-01-02 17:10:18 +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
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
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
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
d53725d069
fix: use correct bitwise operator ( #302 )
...
* Fix permissions (sorry my ide changed & to &&)
* Change botHasChannelPermissions to async.
This seems to have fixed my issue for my bot
* Remove async for botHasChannelPermissions
* Add async back for botHasChannelPermissions since it doesn't work without it
* Remove async, the issues were something else apparently
2020-12-30 17:35:39 +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
7cce1fab18
fmt
2020-12-27 13:26:19 -05:00
Skillz
8e92047845
allow optional easier
2020-12-27 13:10:36 -05:00
Skillz
156347c2fa
fix: small typos
2020-12-27 12:39:23 -05:00
Skillz
dc23f30161
add message.channel
2020-12-27 12:11:08 -05:00