iCrawl
76a7021452
chore: deps
2022-10-07 02:49:44 +02:00
ckohen
01d75c8b8b
fix(Client): don't auth for webhook fetches with token ( #8709 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-06 19:43:00 +00:00
Almeida
aec44a0c93
refactor: rename Error to DiscordjsError internally ( #8706 )
...
* refactor: rename Error to DiscordjsError internally
* chore: remove globalThis usage
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-06 09:21:03 +00:00
Suneet Tipirneni
9effd82abe
docs: fix AwaitMessageComponentOptions typedef ( #8696 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-05 20:41:36 +02:00
SpaceEEC
628759bcff
feat(GuildChannelManager): allow creating channels with a default auto archive duration ( #8693 )
2022-10-05 20:41:15 +02:00
muchnameless
a306219673
fix: re-export util ( #8699 )
2022-10-05 20:40:50 +02:00
Suneet Tipirneni
c0f7a1a89a
types(Message): remove & this from #inGuild typeguard ( #8704 )
2022-10-05 20:40:28 +02:00
Jiralite
ace974fc1f
fix: Throw discord.js errors correctly ( #8697 )
...
fix: import errors correctly
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-05 16:16:07 +00:00
iCrawl
d9137c3658
chore: deps
2022-10-04 01:10:35 +02:00
Suneet Tipirneni
b2ec865765
feat: add @discordjs/util ( #8591 )
...
* feat: add @discordjs/util
* fix: builders test
* refactor: make rest use lazy for ESM import
* chore: make requested changes
* Apply suggestions from code review
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
* chore: make requested changes and add tests
* chore: regen lockfile
* test: add type tests
* chore: push missing files
* chore: make requested changes
* chore: update CI stuff
* chore: fix lockfile
* chore: make requested changes
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-02 18:00:31 +00:00
Almeida
883f6e9202
feat(ForumChannel): add defaultSortOrder ( #8633 )
2022-10-01 14:00:30 +00:00
Almeida
2ea2a85e63
types(ModalBuilder): fix constructor typings ( #8690 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-01 13:53:56 +00:00
Almeida
d24dbf7d22
chore(deps): bump discord-api-types ( #8685 )
2022-10-01 13:30:19 +00:00
iCrawl
9f63eb977f
chore(discord.js): release discord.js@14.5.0
2022-09-25 19:17:25 +02:00
iCrawl
4a07f9eaa1
chore: deps
2022-09-25 19:08:39 +02:00
MrMythicalYT
d79aa2d0d0
docs: fix duplicate typedefs ( #8677 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-25 11:46:10 +00:00
Jiralite
8ca407e089
docs(ForumChannel): Add @implements ( #8678 )
2022-09-25 13:27:56 +02:00
Jiralite
0126d9b810
fix(ThreadChannel): Add forum channel to parent ( #8664 )
...
fix(ThreadChannel): add forum channel to parent
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:51:11 +00:00
Jiralite
e9931229ae
refactor(GuildBanManager): Add deprecation warning for deleteMessageDays ( #8659 )
...
refactor(GuildBanManager): add deprecation warning for `deleteMessageDays`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:45:30 +00:00
Jiralite
1486bc9336
types(GuildChannelManager): Handle forum channel overload ( #8660 )
...
types(GuildChannelManager): handle forum channel overload
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:40:19 +00:00
Almeida
16fcdc3687
fix(GuildChannelManager): allow creating webhooks on forums ( #8661 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:34:19 +00:00
Jiralite
8622939229
fix(ForumChannel): Implement missing properties and methods ( #8662 )
...
* fix(ForumChannel): implement missing properties and methods
* refactor(ForumChannel): remove redundant default
* docs(ForumChannel): remove superfluous wording
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:28:42 +00:00
Jiralite
2487e3bf76
types(Caches): Allow GuildForumThreadManager and GuildTextThreadManager ( #8665 )
...
types: allow `GuildForumThreadManager` and `GuildTextThreadManager`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:14:43 +00:00
Maksi
578bc951bd
fix: RepliableInteraction respect cached generic ( #8667 )
...
* fix: RepliableInteraction respect cached generic
* fix: prettier format
* Update packages/discord.js/typings/index.d.ts
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:09:24 +00:00
Jiralite
1244854e13
fix(ThreadChannel): Allow editing flags ( #8671 )
...
fix(ThreadChannel): allow editing flags
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 14:02:30 +00:00
Jaworek
fc8ed816e6
fix(GuildChannelManager): typo in flags property name when editing ( #8669 )
...
* Update GuildChannelManager.js
* Update index.d.ts
* Update GuildChannelManager.js
* Update index.d.ts
2022-09-23 20:20:46 +00:00
Almeida
abb7226af3
feat(GuildChannelManager): allow editing flags ( #8637 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-21 22:00:06 +00:00
iCrawl
0b12d6fa10
chore(discord.js): release discord.js 14.4.0
2022-09-21 14:09:39 +02:00
Jiralite
b106956308
feat(Widget): Allow forum channels ( #8645 )
2022-09-21 02:57:32 +02:00
Jiralite
6f1f465a77
feat(WelcomeChannel): Add forum channel as a type ( #8643 )
2022-09-21 02:57:18 +02:00
Jiralite
5048a3d17a
feat: Allow forum channels in webhook update event ( #8646 )
...
feat: allow forum channels in webhook update event
2022-09-20 11:51:34 +00:00
Jiralite
f0497343f1
docs: Correctly overwrite setRTCRegion method ( #8642 )
...
docs: correctly overwrite `setRTCRegion` method
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-19 21:07:58 +00:00
Jiralite
f6f15d8e87
fix: Correct applied tags type ( #8641 )
...
* fix: correct applied tags type
* types: this is never a private thread channel
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-19 21:02:36 +00:00
Jiralite
14bbc9150a
types: Narrow channel type in thread managers ( #8640 )
...
types: narrow channel type in thread managers
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-19 20:00:59 +00:00
Jiralite
a7f816eeb7
fix(ThreadChannel): Make fetchStarterMessage() work in forum posts ( #8638 )
...
fix(ThreadChannel): make `fetchStarterMessage()` work in forum posts
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-19 19:55:33 +00:00
Jiralite
802b2394b0
docs(GuildTextThreadManager): Document correct @extend ( #8639 )
...
docs(GuildTextThreadManager): document correct `@extend`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-19 19:50:18 +00:00
iCrawl
eba9cc6038
chore: deps
2022-09-19 14:41:43 +02:00
Almeida
145eb2fc5d
fix: update messageCount/totalMessageSent on message events ( #8635 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-19 00:38:23 +00:00
Suneet Tipirneni
8a8d519c9c
feat: add support for guild forums ( #7791 )
...
* feat: add support for guild forums
* feat(webhook): add support for creating forum channel posts
* fix: duplicated docs
* feat: add support for message counts
* feat: add support for latest upstream changes
* fix: serialize forum channels
* types: fix channel unions
* types: fix tests
* types: fix tests (again)
* types: fix tests (again (again))
* chore: make requested changes
* chore: fix bugs and make requested changes
* types: use correct type for guild forum start messages
* chore: remove console.log
* chore: make requested changes
* chore: make requested changes
* chore: fix docs
* Update packages/discord.js/src/managers/GuildForumThreadManager.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: update types
* chore: make requested changes
* chore: Apply suggestions
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Jonathan Rubenstein <jrubcop@gmail.com >
* fix: import `ErrorCodes`
* fix: remove defunct code
* refactor: be consistent with channel class names
* feat(GuildChannel): add flags
* fix: rename file
* refactor: channel flags are everywhere!
* fix: import flags correctly
* chore(ThreadChannel): update message count string
* docs(Channels): correct `@param` type
* docs(Channels): ignore transformGuildDefaultReaction
* refactor: emoji object in tags
* chore: renaming consistency
* fix: document default reaction emojis in patching
* fix(GuildChannelManager): document `defaultThreadRateLimitPerUser`
* chore: semicolon
* docs(ErrorCodes): document `GuildForumMessageRequired`
* refactor: transform default reactions
* docs(APITypes): Add `ChannelFlags`
* fix: convert tags properly
* fix: pass an array of snowflakes
* refactor: handle flags better
* fix(ThreadChannel): receive tags
* fix(PartialGroupDMChannel): nullify `flags`
Apparently did not do this earlier.
* chore: misc sorting
* refactor: nullify emoji on tags if not present
* refactor(ForumChannel): modify returns
* types: protect the thread manager!
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
* chore: update `ChannelType` usage
* Update index.d.ts
* docs: Update default reaction emoji property names
Co-authored-by: Almeida <almeidx@pm.me >
* fix: only `name` is required when editing tags
- discord/discord-api-docs#5458
* types: add tests for `channel.flags`
* fix: allow unsetting the default reaction emoji
* refactor: remove v13 remnants
* docs: add missing closing tag
* feat: add `rateLimitPerUser`
* feat: add missing properties for create guild channel
- discord/discord-api-docs#5474
* refactor(GuildForumThreadManager): refactor message payload
* fix: handle magical `null` case
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Jonathan Rubenstein <jrubcop@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: A. Román <kyradiscord@gmail.com >
2022-09-18 14:23:44 +00:00
Almeida
669c3cd256
refactor: replace usage of deprecated ChannelTypes ( #8625 )
...
refactor: use new non-deprecated `ChannelType`s
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-17 13:56:19 +00:00
Almeida
053da5bc91
types(interactions): pass Cached type to return type of methods ( #8619 )
2022-09-15 20:18:48 +02:00
RedGuy12
fc9653f5ae
docs: fix regexps incorrectly being called global ( #8624 )
2022-09-15 20:15:01 +02:00
Almeida
22ac6b4660
docs: update misleading Client#guildMemberAvailable event description ( #8626 )
2022-09-15 20:13:55 +02:00
Jiralite
a9f003ac9b
types: Ensure events possess Client<true> ( #8612 )
...
types: ensure events possess `Client<true>`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-11 18:36:24 +00:00
RedGuy12
1d4cdee321
types(GuildChannelManager): correct fetch return type ( #8549 )
...
* types(GuildChannelManager): correct `fetch` return type
* fix(ci): fix the types tests
* fix: fix the docs
* Update packages/discord.js/src/managers/GuildChannelManager.js
Co-authored-by: Almeida <almeidx@pm.me >
* types: allow channels in the collection to be null
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* style: run prettier
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* test: fix types again
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
* style: run prettier
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-11 18:29:28 +00:00
Jiralite
8e1afaebdb
refactor: Split message send/edit types/documentation ( #8590 )
...
* refactor: split message send/edit types
* refactor: move `MessageEditOptions`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-11 18:22:53 +00:00
advaith
32523325c6
docs(Options): update DefaultMakeCacheSettings ( #8585 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-11 18:16:34 +00:00
iCrawl
f9e9bfdedc
chore: deps
2022-09-09 00:07:56 +02:00
advaith
03fb5b0a2f
feat(GuildBanManager#create): add deleteMessageSeconds ( #8326 )
...
* feat(GuildBanManager#create): add `deleteMessageSeconds`
* Apply suggestions from code review
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: remove typeof and return undefined if neither are set
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-08 13:15:01 +00:00
Parbez
dbca93098c
chore: remove unused eslint disable comments ( #8595 )
2022-09-08 15:08:04 +02:00