ITOH
c91c9d0870
types: remove entire types ( #684 )
2021-03-23 19:14:26 +04:00
ayntee
10cb9d7eb9
types(util): add case utility types ( #683 )
...
* types(util): add case utility types
* Rename *ID to *Id
2021-03-23 19:04:46 +04:00
ayntee
6ff4654686
refactor(util): remove chooseRandom() ( #682 )
2021-03-23 16:47:46 +04:00
ITOH
5821092e78
fix(handleres/guilds): unavailable guilds & guildDelete emit delay ( #674 )
...
Co-authored-by: ayntee <ayyantee@gmail.com >
2021-03-23 14:45:57 +04:00
ayntee
c1a016ca9f
fix(util/collection): .first(), .last(), .random() may return undefined ( #680 )
...
* fix(util/collection): .first() may return undefined
* fix(util/collection): .random(), .last() may return undefined
2021-03-23 14:31:29 +04:00
ayntee
1ce2e56b68
docs(types): move guidelines to CONTRIBUTING.md
2021-03-22 10:18:53 +04:00
ayntee
e4fc09069f
style: format files
2021-03-20 10:08:30 +04:00
ayntee
5125ffd308
refactor: replace util/cache with cache
2021-03-20 10:06:57 +04:00
ayntee
9699f741fe
refactor(helpers): rename createGuildChannel to createChannel ( #678 )
...
* refactor(helpers): rename createGuildChannel to createChannel
* idk
2021-03-19 13:03:24 +04:00
ayntee
489aa6d166
refactor(handlers): move presence/* to misc/* ( #677 )
2021-03-17 16:32:45 +04:00
ayntee
eba5679806
refactor(helpers): rename executeSlashCommand to sendInteractionResponse ( #676 )
2021-03-17 15:28:44 +04:00
ayntee
314bef2055
Merge branch 'main' of https://github.com/discordeno/discordeno
2021-03-16 22:38:54 +04:00
ayntee
4ae893aebd
deps: update @evan/wasm to latest
2021-03-16 22:38:02 +04:00
ITOH
2d55decce5
refactor: use guildID and shardID as args in requestAllMembers() & fetchMembers() ( #671 )
...
* change args of requestAllMembers
* change args of fetchMembers
* fix getMembersByQuery
Co-authored-by: ayntee <ayyantee@gmail.com >
2021-03-15 19:19:18 +04:00
ayntee
3e0de857c6
fix: use disconnectMember
2021-03-15 15:43:50 +04:00
ayntee
e852dc315a
fix: export aliases from mod.ts
2021-03-15 15:41:46 +04:00
ayntee
eb3452e23b
Revert "feat(types/util): add case utility types"
...
This reverts commit 9ec5e65f38 .
2021-03-14 19:57:30 +04:00
ayntee
9ec5e65f38
feat(types/util): add case utility types
2021-03-14 19:50:22 +04:00
ayntee
2d0b96c1e2
refactor(helpers): rename & replace deleteMessageByID() with deleteMessage() ( #668 )
...
* refactor(helpers): rename & replace deleteMessageByID() with deleteMessage()
* changes
* fix
* fix
* Update src/types/errors.ts
2021-03-13 11:47:53 -05:00
ayntee
e9cbbbff7c
refactor(helpers): separate functions into files ( #667 )
...
* refactor(helpers): separate functions into files
* idk
* idk
2021-03-13 08:10:31 -05:00
ITOH
88ce4da555
fix(utils/permissions): use |= operator for role deny overwrite in calculateChannelOverwrites() ( #665 )
2021-03-12 15:27:39 +04:00
ITOH
ebbcd762cf
feat(util/permissions): improve permission-checking ( #381 )
...
* Update permissions.ts
* add(permissions): explaining comments
Since Discord permissions are quiet complex it is better to have detailed comments explaining everything.
* docs: add better permissions jsdoc comments
* types: add missing errors
* change imports
* we want a string here
* strange commit here
* we need an s in tts
* permissions: update channel permission handling
* permissions: update guild permission handling
* permissions: update member permission handling
* permissions: update message permission handling
* permissions: update webhook permission handling
* fix this buggg
* fix: typo
* better func names
* better description
* permissions(editMember): add permission check if channel_id is provided
* added todo for deaf
* fixxx
* FIIIXXX
* Update permissions.ts
* throwOn to require
* change up review things
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Apply suggestions from code review
Co-authored-by: Ayyan <ayyantee@gmail.com >
* BigInt() to n
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/permissions.ts
Co-authored-by: Ayyan <ayyantee@gmail.com >
* Update src/util/permissions.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* missed this
* Update permissions.ts
* here enum is needed
* use set so errors arenn't strange
* dumb idea
* hasChannelPermissions functions are nice to have
* role to guild
* bugg
* fix(handlers): createGuildChannel check overwrite perms
* remove redundant if check
* fixes
* Update guild.ts
* bettrrrr
* Revert "bettrrrr"
This reverts commit ecbd30e160 .
* I hate it
* fix fix
* fixxesss
* this function is better
* oh forgot these
* better I guess
* more functions
* silly me forgot to remove console.logs
* buuuuugs
* small changes
* Update permission.ts
* Update permissions.ts
* Update GUILD_CREATE.ts
* Update channel.ts
* remove this
* suggestions
Co-authored-by: Ayyan <ayyantee@gmail.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-03-11 22:33:52 +04:00
ayntee
d9e994b4d8
refactor(helpers/message): divide message arg into channelID & messageID in getReactions() ( #662 )
2021-03-11 22:21:14 +04:00
ayntee
8654aeded5
refactor: rename controllers to handlers and handlers to helpers ( #660 )
...
* refactor: rename controllers to handlers and handlers to helpers
* fmt
2021-03-11 21:41:03 +04:00
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
372dc9988b
fix(controllers/READY): reimplement guild cache mechanism ( #647 )
...
* add lastShardID
* fix ready event controller
* forgot to push this file
* move ready to its own file
* some changes
* Update READY.ts
* some changes idk if they are good
* Update options.ts
* Update READY.ts
* Update guilds.ts
2021-03-11 18:09:59 +04:00
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
2c14a3f6b0
feat(handlers/message): change getReactions() to use collection ( #655 )
...
* feat(handlers/message): change getReactions() to use collection
* deno fmt
2021-03-11 18:01:21 +04:00
ayntee
ba2363618e
deps: update to latest ( #656 )
2021-03-11 17:46:06 +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
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
0ec33b7420
feat(handlers/webhook): change getSlashCommands() to return Collection ( #410 )
...
* refactor(handlers): getSlashCommands return Collection
* wrongy wrong
2021-03-08 20:39:40 +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
45a3246370
fix(ws/shard): update status update payload ( #559 )
...
* fix(ws/shard): update status update payload
* :(
* Update src/types/discord.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
* it\'s activitypayload
* Update src/types/discord.ts
* idk
* idk
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com >
2021-03-08 19:41:20 +04:00
ayntee
03d6614758
refactor: rename slowmode to rateLimitPerUser ( #645 )
2021-03-08 19:10:19 +04:00
Skillz4Killz
23708cc39d
fix(types/webhook): update interaction response types ( #644 )
...
This reverts commit 1b29c92aac .
2021-03-08 18:55:31 +04:00
Skillz4Killz
3a249d91d4
Revert "Revert "fix(handlers/webhook): return Message object instead of raw payload ( #611 )" ( #634 )" ( #643 )
...
This reverts commit a515765abf .
2021-03-08 18:52:59 +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
Pawan Akhil
9715ab4274
Fixed field name in GuildTemplate Interface ( #505 )
...
Replaced "user" field name with "creator".
Co-authored-by: ayntee <ayyantee@gmail.com >
2021-03-08 18:21:17 +04:00
ayntee
544c3c3af2
feat(types/interactions): remove "default" from ApplicationCommandOption interface ( #598 )
2021-03-08 18:13:55 +04:00
ayntee
95ac54cee9
fix(handlers/member): change editMember() to return a Member object ( #578 )
2021-03-08 18:13:27 +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
bd14075c8a
fix(types/channel): change FileContent.blob type to Blob ( #509 )
...
* fix(types/channel): change FileContent.blob type to Blob
* idk
* change to blob
* idk
2021-03-08 18:12:35 +04:00
ITOH
100f7ff965
fix(handlers/channel): add permission handler for startTyping() ( #626 )
...
* add perm check
* Update src/api/handlers/channel.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2021-03-08 17:46:23 +04:00