Qjuh
4f5e5c7c14
feat: components v2 ( #10847 )
...
* feat: components v2
* fix: tests
* fix: merge
* fix: lint
* Update packages/discord.js/src/util/Components.js
* fix: forward-port fixes from v14
* fix: getter
* fix: missing UnfurledMediaItem#toJSON()
* fix: find interactive component in container
* docs(APIMediaGalleryItem): Correct tag
* fix: forward port
* Apply suggestions from code review
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-11 20:46:09 +00:00
Jiralite
4f6fedfb1f
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 11:06:35 +00:00
Danial Raza
c4cd6ea637
feat: soundboard forward port ( #10859 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-09 07:43:40 +00:00
Jiralite
436784f945
perf(Components): Hash table ( #10890 )
...
refactor(Components): hash table
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 21:14:58 +00:00
Jiralite
320e3a6246
fix(PartialGroupDMChannel): Prevent undefined values ( #10889 )
...
fix(PartialGroupDMChannel): prevent `undefined` values
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 16:45:47 +00:00
Almeida
026440c256
build: exclude type tests from pack ( #10886 )
...
* build: exclude type tests from pack
* fix: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-07 16:32:11 +00:00
Jiralite
432cdbe88a
refactor(Client): Remove with_expiration query parameter ( #10800 )
...
refactor(Client): remove `with_expiration`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-05-06 14:24:12 +00:00
Noel
2184085fda
docs: guide setup ( #10862 )
2025-04-28 02:23:27 +02:00
Danial Raza
d81b4be2cd
feat: add soundboard ( #10590 )
...
* feat: add soundboard
* types(PartialSoundboardSound): add `available`
* feat(VoiceChannelEffect): add `soundboardSound` getter
* types: improve return types
* docs: requested changes
* feat: support multiple audio file types
* types(GuildSoundboardSoundCreateOptions): add `contentType`
* types: add default and guild soundboard sound
* fix: requested changes
* docs: use `@fires` tag
* docs: remove misleading tag
* chore: requested changes and missing things
* feat: add send soundboard sound options
2025-04-25 19:43:17 +00:00
Naiyar
8e4e319c24
feat: entry-point command ( #10640 )
...
* feat: entry point command
* chore: update tests
* chore: suggested change
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* chore: remove extra info closing tag
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-24 19:55:30 +00:00
Qjuh
5a4de953fa
fix: generateSplitDocumentation for external docs on main ( #10827 )
...
* fix: generateSplitDocumentation for external docs on main
* fix: remove console.log
* chore: apply suggestion
Co-authored-by: Almeida <github@almeidx.dev >
* fix: mixes tag
* chore: docs include collection
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-24 19:19:52 +00:00
Vlad Frangu
42ce116226
chore(deps): bump discord-api-types ( #10841 )
...
* chore(deps): bump discord-api-types
* chore: tests
* chore: tests 2
* chore: replace ImageSize type with dtypes type
2025-04-22 17:12:34 +00:00
Qjuh
92e07c8f7f
types: add missing BaseMessageCreateOptions ( #10833 )
...
* types: add missing BaseMessageCreateOptions
* build: trigger tests
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: almeidx <github@almeidx.dev >
2025-04-18 16:46:55 +00:00
Qjuh
feec5efe45
fix: don't set ready status twice ( #10807 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-17 18:11:24 +00:00
Danial Raza
57c3da2e8e
docs(ApplicationCommand): incorrect method in example ( #10837 )
2025-04-16 17:26:28 +00:00
Almeida
f0ea40586b
build: bump discord-api-types to 0.37.120 ( #10832 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-11 08:26:23 +00:00
Almeida
53ba3b6016
feat(BaseInteraction): add attachmentSizeLimit ( #10830 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-04-10 20:41:52 +00:00
Jiralite
3b76c7072d
build: Bump Undici to 7.8.0 ( #10831 )
...
build: bump Undici
2025-04-10 13:40:46 +00:00
Noel
f580de8025
chore: upgrade deps ( #10824 )
2025-04-05 13:18:56 +02:00
Danial Raza
432aba3df7
types(ModalSubmitFields): fix fields type ( #10816 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-30 11:45:37 +00:00
Almeida
646ecae47f
fix(Message): forwarded messages are not crosspostable ( #10821 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-29 08:17:51 +00:00
Almeida
93f2ba0fc8
fix(PollAnswer): only define _emoji property once ( #10811 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-27 18:05:05 +00:00
Jacob Morrison
3234fc6b3b
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>
2025-03-27 18:01:05 +00:00
Almeida
73f2ef9c87
fix: all shards spawning on shard 0 with sharding manager ( #10814 )
2025-03-22 20:17:14 +00:00
Almeida
ab6a69401e
docs: remove hardcoded locale from links ( #10794 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-07 21:23:42 +00:00
Jiralite
c78407e751
fix(GuildMemberManager): Ensure empty object for fetching many guild members ( #10796 )
...
fix(GuildMemberManager): pass empty object for fetching many
2025-03-07 20:15:54 +00:00
Danial Raza
b7e334e74a
feat(Webhook): allow setting withComponents ( #10792 )
...
* feat(Webhook): allow setting `withComponents`
* docs: remove brackets
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-03-05 19:08:22 +00:00
Denis-Adrian Cristea
0f89353443
refactor!: remove discord.js builders ( #10529 )
...
BREAKING CHANGE: Removed all builder extensions within discord.js
2025-03-05 14:34:49 +02:00
TÆMBØ
88bfeaab22
feat: PollBuilder ( #10324 )
...
* Add PollBuilder
* Add exports
* Update typings
* Update validations
* Use correct enum validator method
* Fix assertion, formatting
* Add tests
* Fix assertion
* Add JSDoc, format
* Make requested changes
* Remove unnecessary blank import
* Add support for PollBuilder in mainlib discord.js
* Add types, fix formatting
* Correct typings & assertions for poll answer emojis
* Improve typings readability
* Add JSDoc typings for overrides
* Add types for using PollBuilder in message payload
* Add tests, allow passing Emoji instance to emoji option
* Fix formatting
* Update max poll duration
* refactor: implement builders v2 pattern
2025-02-28 10:07:27 +00:00
Danial Raza
b6fda781c8
refactor: remove parameter reassignment ( #10715 )
...
* refactor: remove parameter reassignment
* refactor: requested changes
Co-authored-by: Almeida <github@almeidx.dev >
* chore: requested changes
Co-authored-by: Qjuh <Qjuh@users.noreply.github.com >
* chore: requested changes
* refactor: destructure in parameters
Co-authored-by: Almeida <github@almeidx.dev >
* refactor: apply suggested changes
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: Qjuh <Qjuh@users.noreply.github.com >
2025-02-26 15:31:29 +00:00
Almeida
bb6767113f
feat: re-emit REST debug logs ( #10782 )
2025-02-25 06:20:10 +00:00
Almeida
c429cc112b
types(ShardClientUtil): remove count and ids ( #10780 )
2025-02-23 16:13:59 +00:00
Almeida
a1d19b909a
refactor!: remove polyfillDispose ( #10776 )
...
BREAKING CHANGE: The `polyfillDispose` function has been removed
2025-02-22 00:52:06 +00:00
Danial Raza
ed55c029d6
fix(MessagePayload): preserve existing flags when editing ( #10765 )
...
* fix(MessagePayload): preserve existing flags when editing
* refactor: request changes
* fix: missing `.bitfield`
2025-02-21 15:17:33 +00:00
Danial Raza
cbb33ecdac
types(InteractionCallbackResponse): add missing InGuild generic ( #10767 )
...
Co-authored-by: TÆMBØ <TAEMBO@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-02-21 15:11:07 +00:00
Naiyar
c4fbe89f48
fix(GuildChannelManager): properly resolve avatar for createWebhook ( #10772 )
...
fix(GuildChannelManager): properly resolve avatr for createWebhook
2025-02-21 11:14:38 +00:00
TÆMBØ
0e7bdb0728
feat!: create forwards and add ChannelManager#createMessage() ( #10559 )
...
BREAKING CHANGE: `MessageCreateOptions` no longer accepts `forward` or `reply`. Use `messageReference` instead.
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-02-20 21:53:52 +00:00
Kevin
e3e3c212bd
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 >
2025-02-15 20:20:54 +00:00
Luna
b7fd2d105f
refactor(Client)!: Remove emojis getter ( #10754 )
...
BREAKING CHANGE: Removed `Client#emojis`
---------
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
2025-02-15 13:46:29 +02:00
Jiralite
5c49b6d9af
docs: Fix close tags ( #10756 )
...
* docs: fix close tag
* remove extra spaces
---------
Co-authored-by: Almeida <github@almeidx.dev >
2025-02-12 19:08:07 +00:00
Danial Raza
64494137da
types: rename CategoryChannelType to CategoryChannelChildTypes ( #10750 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-02-12 11:26:13 +00:00
Lobo Metalúrgico
5c48979096
build: Update undici to 6.21.1 ( #10743 )
...
fix: undici bumping to 6.21.1
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-02-10 23:07:06 +00:00
ŊʂƓ PRIYANSHU
5f463eb9e9
chore: Add contributors and last commit badges ( #10428 )
...
* chore: add new fancy badges
* chore: add util
* style: remove extra space
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-29 10:51:05 +00:00
Jiralite
529ce6b472
docs: Use link tags to render links on the documentation ( #10731 )
...
* docs: use link tags
* docs(DateResolvable): update link
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-29 09:27:58 +00:00
Jiralite
fa0d4b507d
feat: Incident Actions ( #10727 )
...
* feat: initial commit
* feat: add guild helper
* docs: `guild` is required
* docs(IncidentActions): move to guild
* fix: `incidents_data` is nullable
* fix: method typo
* fix: default to `null`
* fix: use `new Date()`
* docs: note that it is not received over the gateway
* refactor: use transformer
* chore: resolve TODO
* chore: typo
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
* chore: suggestions
Co-authored-by: Almeida <github@almeidx.dev >
* chore: consistency
Co-authored-by: Almeida <github@almeidx.dev >
---------
Co-authored-by: Danial Raza <danialrazafb@gmail.com >
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-28 19:43:20 +00:00
Jiralite
6df42db33d
build: bump discord-api-types to 0.37.118 ( #10730 )
2025-01-28 10:09:09 +00:00
Jiralite
3db8ce70a2
build!: Bump Node.js to 22.12.0 ( #10726 )
...
BREAKING CHANGE: Node.js 22.12.0 or above is required.
2025-01-26 14:56:39 +00:00
cobalt
b820daadd4
fix(GuildAuditLogEntry)!: Fix some incorrect types and runtime logic ( #10591 )
...
BREAKING CHANGE: It also doesn't have a `options.channel_id`, so I stopped `.extra.channel` from being set to `{ id: undefined }`
BREAKING CHANGE: Fixed both types and runtime logic here, it previously created a broken `AutoModerationRule`
BREAKING CHANGE: Removed `Targets.GuildOnboarding`, it will fallback to `Targets.Unknown` and generate a placeholder `target` from the `changes`
---------
Signed-off-by: cobalt <61329810+cobaltt7@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com >
Co-authored-by: Almeida <github@almeidx.dev >
2025-01-26 13:48:57 +00:00
Vlad Frangu
0ab6abbcff
types: remove fields that cannot be set by the client ( #10711 )
...
* types: remove fields that cannot be set by the client
* chore: cleanup JS lands too
* chore: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-26 10:34:34 +00:00
Danial Raza
695f592361
refactor!: consolidate parameters into a single options object ( #10718 )
...
BREAKING CHANGE: `ApplicationCommandManager#fetch` and `GuildApplicationCommandManager#fetch` no longer accept 2 parameters. Instead, the first parameter accepts `id` or `options` which can now also have the `id` property.
---------
Co-authored-by: Micah Benac <OfficialSirH@users.noreply.github.com >
Co-authored-by: Almeida <github@almeidx.dev >
2025-01-25 20:43:20 +00:00