Almeida
4a8aeb6aee
feat: polls overhaul ( #11058 )
...
* feat: polls overhaul (#10328 )
* feat(Managers): add PollAnswerVoterManager
* feat(Partials): make Polls partial-safe
* types: add typings
* chore: add tests
* fix: use fetch method in manager instead
* chore: add tests for manager
* feat: add partial support to poll actions
* style: formatting
* fix: change all .users references to .voters
* refactor: add additional logic for partials
* fix: actually add the partials
* fix: fixed issue where event does not emit on first event
* fix: align property type with DAPI documentation
* fix: resolve additional bugs with partials
* typings: update typings to reflect property type change
* fix: tests
* fix: adjust tests
* refactor: combine partials logic into one statement
* docs: mark getter as readonly
* refactor: apply suggestions
Co-authored-by: Almeida <github@almeidx.dev >
* refactor(Actions): apply suggestions
* refactor(PollAnswerVoterManager): apply suggestions
* refactor(Message): check for existing poll before creating a poll
* refactor(Polls): apply suggestions
* revert(types): remove unused method from Poll class
* refactor(Actions): consolidate poll creation logic into action class
* refactor(PollAnswerVoterManager): set default for fetch parameter
* refactor(Message): apply suggestion
* fix: remove partial setter
* refactor(Polls): apply suggestions
* types: apply suggestions
* refactor: remove clones
* docs: spacing
* refactor: move setters from constructor to _patch
* types: adjust partials for poll classes
* test: add more tests for polls
* refactor: move updates around, more correct partial types
* fix: handle more cases
* refactor: requested changes
* fix: missing imports
* fix: update imports
* fix: require file extensions
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* fix(Poll): ensure `this.answers` is set before we reference it (#10809 )
* Ensure his.answers is set sooner if it's null during a patch
* Move data.answers block up as well to ensure the patched answers are set
* Ensure collection is set in constructor instead
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix(PollAnswer): only define _emoji property once (#10811 )
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
---------
Co-authored-by: Kevin <uhkevinmc@eedo.app >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
Co-authored-by: Jacob Morrison <jake.morrison24@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-08-29 10:58:04 +01:00
Jiralite
3dd57c2eaf
docs: Deprecate API related to guild ownership ( #11054 )
...
* docs: deprecate API usage for guild ownership
* docs: remove pointless example
2025-08-29 10:53:34 +01:00
Jiralite
740da4ce5e
docs: deprecate setting owner
2025-08-29 10:51:13 +01:00
Jiralite
6fb0b1cef6
docs(guild): deprecate API related to guild ownership
2025-08-22 12:48:29 +01:00
Jiralite
ac6ff15b7d
fix(guild): Creating a template actually creates a template ( #11030 )
...
feat(guild): add creating a template
2025-08-22 12:41:53 +01:00
Jiralite
a294b47db0
chore(discord.js): release discord.js@14.22.1
14.22.1
2025-08-22 12:05:56 +01:00
Souji
ecef7bdf22
fix(GuildChannel): account for everyone base permissions ( #11053 )
...
When calculating permissions after overwrites, the base permission of the at-everyone role need to be accounted for.
Role#permissions is not sufficient, as it only describes base permissions of the role itself.
fixes #11052
2025-08-22 12:04:35 +01:00
Jiralite
40578393c3
chore: add @discordjs/collection in api-extractor.json
2025-08-22 08:57:02 +01:00
Vlad Frangu
86ecb37c9e
chore(discord.js): correct changelog and version
14.22.0
2025-08-21 00:58:23 +03:00
Vlad Frangu
311e826b12
chore(discord.js): release discord.js@15.0.0
2025-08-21 00:52:53 +03:00
Vlad Frangu
dceac0089d
chore(core): release @discordjs/core@2.2.1
@discordjs/core@2.2.1
2025-08-21 00:48:29 +03:00
Vlad Frangu
a2f7d3ad54
chore(rest): release @discordjs/rest@2.6.0
@discordjs/rest@2.6.0
2025-08-21 00:43:53 +03:00
Jiralite
b532df61ed
fix: Remove trailing color references ( #11007 )
...
fix: role colour fixes
2025-07-20 18:01:45 +01:00
Jiralite
d60e0bf30b
types(Invite): Approximate fields should be nullable ( #10997 )
...
types: nullable fields
2025-07-16 23:41:57 +01:00
Danial Raza
baa08b8fbb
feat: support user guilds ( #10995 )
2025-07-16 22:27:54 +02:00
Jiralite
f469f74aca
feat(MessageManager): New pinned messages routes ( #10993 )
...
feat(MessageManager)!: New pinned messages routes (#10989 )
BREAKING CHANGE: `fetchPinned()` has been renamed to `fetchPins()`, which is a paginated endpoint to fetch pinned messages.
2025-07-16 11:33:16 +01:00
Jiralite
90d3b28268
fix(Emoji): remove incorrect nullables, add ApplicationEmoji#available ( #10990 )
...
fix: remove incorrect nullables, add `ApplicationEmoji#available`
Co-authored-by: Amgelo563 <61554601+Amgelo563@users.noreply.github.com >
2025-07-15 19:52:47 +01:00
Jiralite
a271e9b51e
build: Upgrade discord-api-types ( #10991 )
...
build: Upgrade dependencies
2025-07-15 01:30:58 +01:00
Danial Raza
8ac0e1e5d6
feat(User): add collectibles ( #10939 )
...
* feat(User): add `collectibles`
* docs: nullable collectibles and nameplate data
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-Authored-By: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-07-15 00:41:57 +01:00
Jiralite
9d6fdf8979
feat: Role gradient colours ( #10986 )
...
* feat: backport role gradient colours
* chore: add deprecations
2025-07-14 18:34:52 +01:00
Jiralite
cafe58b3bd
feat: Support animated WebP ( #10987 )
...
* feat: Support animated WebP (#10911 )
* feat: support animated WebP
* refactor: change the rest
* fix: remove redundant code
* fix(CDN): Export `MakeURLOptions`
2025-07-14 18:34:27 +01:00
Jiralite
7eca844f6d
chore: remove unused directive
2025-07-14 10:58:55 +01:00
Naiyar
63f5261f4c
fix(GuildChannelManager): properly resolve avatar for createWebhook ( #10772 )
...
fix(GuildChannelManager): properly resolve avatr for createWebhook
2025-07-14 02:26:55 +01:00
Almeida
5be774db64
docs: remove hardcoded locale from links ( #10794 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-07-14 02:24:17 +01:00
Almeida
b36b751bde
fix(Message): forwarded messages are not crosspostable ( #10821 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-07-14 02:19:03 +01:00
Danial Raza
500712d5ea
types(ModalSubmitFields): fix fields type ( #10816 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-07-14 02:17:36 +01:00
Danial Raza
040c66ae15
docs(ApplicationCommand): incorrect method in example ( #10837 )
2025-07-14 02:10:20 +01:00
Jiralite
82378fc2e8
refactor: Deprecate ready event in favor of clientReady ( #10969 )
...
* refactor: deprecate ready event
* refactor: tweak message
Co-Authored-By: Vlad Frangu <me@vladfrangu.dev >
* Update packages/discord.js/src/client/websocket/WebSocketManager.js
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* chore: disable max-len
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
2025-07-13 21:32:22 +01:00
Jiralite
d4f742e99e
refactor(ThreadChannel): Remove trimming of name ( #10984 )
...
refactor(ThreadChannel): no need to trim name
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-07-13 21:16:44 +01:00
Jiralite
51ceb203fa
fix(DirectoryChannel): Export class ( #10985 )
...
fix: export directory channels
2025-07-13 21:07:09 +01:00
Qjuh
1404e32849
fix(Events): WebhooksUpdate enum value ( #10970 )
...
fix: change Events.WebhooksUpdate value
2025-07-11 19:39:12 +01:00
Jiralite
9fc3e5ea72
fix: Adjust reason in methods options ( #10977 )
...
fix: Adjust `reason` in methods options (#10976 )
* fix(channel): allow reason in editing
* fix(channel): allow reason in `delete()`
* fix(channel): allow reason in creating threads
* chore: run format
* fix(guild): remove incorrect `reason` option
---------
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
2025-07-11 10:00:58 +01:00
TÆMBØ
19e74b1533
types(InteractionCallbackResponse): add missing InGuild generic ( #10963 )
2025-07-03 00:21:13 +02:00
Vlad Frangu
de22a10038
chore(discord.js): release discord.js@14.21.0
14.21.0
2025-06-26 01:33:02 +03:00
Vlad Frangu
8ab30cdefa
chore(core): release @discordjs/core@2.2.0
@discordjs/core@2.2.0
2025-06-26 01:26:48 +03:00
Danial Raza
c2a43b685e
types(ClientEventTypes): add missing guildSoundboardSoundsUpdate ( #10928 )
2025-06-25 16:22:07 +01:00
Jiralite
507b696792
fix(ClientUser): Remove token assignment ( #10953 )
...
fix(ClientUser): remove token assignment
2025-06-25 16:15:35 +01:00
Jiralite
15f7571243
feat(GuildMember): add avatarDecorationData ( #10942 )
...
Co-Authored-By: Danial Raza <danialrazafb@gmail.com >
2025-06-25 12:31:43 +01:00
Almeida
3fa429c7df
feat(ClientApplication): add approximateUserAuthorizationCount ( #10933 )
...
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-06-25 12:22:36 +01:00
Jiralite
7713627fd1
feat(webhook): Support with_components ( #10945 )
...
feat: support `with_components`
2025-06-22 10:48:47 +01:00
Vlad Frangu
6a5c0fb32d
chore(discord.js): release discord.js@14.20.0
14.20.0
2025-06-16 15:41:03 +03:00
Vlad Frangu
eb5acd1e30
chore(discord.js): bump ws
2025-06-16 15:39:20 +03:00
Vlad Frangu
127021d5ab
chore(core): release @discordjs/core@2.1.1
@discordjs/core@2.1.1
2025-06-16 15:30:25 +03:00
Vlad Frangu
0943bc2efb
chore(ws): release @discordjs/ws@2.0.3
@discordjs/ws@2.0.3
2025-06-16 15:29:02 +03:00
Vlad Frangu
a1c83c17d6
chore(rest): release @discordjs/rest@2.5.1
@discordjs/rest@2.5.1
2025-06-16 14:55:15 +03:00
Qjuh
c0eae344c2
feat: backport entrypoint command ( #10908 )
2025-05-27 21:50:26 +02:00
Qjuh
f2f757ce52
fix: use resolvePartialEmoji on MessagePayload#options#components ( #10910 )
...
fix: use resolvePartialEmoji on MessagePayload#components again
2025-05-25 13:35:28 +02:00
Jiralite
65cfa3ffd3
build: Update Undici to 6.21.3 ( #10906 )
...
build: update undici
2025-05-20 11:52:49 +01:00
Jiralite
ee2eb7349f
fix(ChannelManager): Remove threads from cache upon deletion ( #10883 )
...
* fix(ChannelManager): remove threads from cache upon deletion
* refactor: loop over thread ids
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-09 14:09:35 +01:00
Jiralite
2d19163d76
perf(Components): Hash table ( #10893 )
...
perf(Components): hash table
2025-05-09 08:43:04 +01:00