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
Vlad Frangu
19d48f6d6c
feat: print out support for aes-256-gcm in native node:crypto ( #10764 )
2025-02-19 20:59:17 +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
Qjuh
44b0f7dd99
chore: Update CODEOWNERS ( #10759 )
...
* chore: Update CODEOWNERS
* Update CODEOWNERS
* sort
---------
Co-authored-by: Almeida <github@almeidx.dev >
2025-02-15 13:49:03 +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
Amgelo563
4b63bb8046
fix: Do not omit falsy default values ( #10755 )
...
* fix(docs): fix default falsy values being omitted
* fix(docs): swap defaultValue check to avoid negated condition
* fix: fix pr by removing everything it added and committing something entirely different
---------
Co-authored-by: almeidx <github@almeidx.dev >
2025-02-12 19:52:02 +00: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
Almeida
58a111d6fe
chore: use Node.js 22 and fix corepack installation ( #10746 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-02-11 00:21:09 +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
Almeida
2183c5eebb
fix(EmbedFieldBuilder): allow empty name and value ( #10745 )
2025-02-10 21:54:31 +00:00
Jiralite
af3ab2211a
chore: Update GuildEmojisAndStickers in bug report form ( #10741 )
...
chore: update intent name
2025-02-08 15:19:15 +00:00
Jiralite
90105338f0
chore: Remove "typings" scope from cliff.toml ( #10738 )
...
chore: remove typings from generator
2025-02-02 15:44:53 +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
Danial Raza
6e61ec6358
feat(Client): add request soundboard sounds ( #10608 )
...
* feat(Client): add request soundboard sounds
* docs: add `guildId` to example
Co-authored-by: Almeida <github@almeidx.dev >
* refactor: remove `groupBy` polyfill
---------
Co-authored-by: Almeida <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-28 12:33:34 +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
Jiralite
9b8b0f828c
build: Properly add typecheck tests ( #10722 )
...
* build: exclude type tests from running
* refactor: use `tsc`
* test: fix broker test
* test: fix voice test
* test: fix builders test
* test: use vitest typecheck
remove unused test scripts
skip lib check
rm vitest.d.ts
* fix: remove tsd from core and ws
* fix: extend local tsconfig
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-26 14:28:45 +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
René
b7e0fe3689
feat(collection): honour subclassing via @@species in static methods ( #10723 )
...
* feat(collection): use @@species in static methods
* test(collection): subclassing tests
* chore: trigger ci
---------
Co-authored-by: almeidx <github@almeidx.dev >
2025-01-26 13:14:48 +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
Almeida
2cbf418008
types!: remove GuildMemberResolvable ( #10713 )
...
BREAKING CHANGE: The `GuildMemberResolvable` union has been removed. Use `UserResolvable` instead.
2025-01-24 12:39:37 +00:00
Almeida
670667d65b
feat: add auth option in api methods ( #10717 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-24 11:23:17 +00:00
Amgelo563
54d8750a2d
docs(Message): improve message snapshots description ( #10709 )
...
* docs(Message): improve message snapshots description
* docs(Message): remove snapshots single entry callout
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-01-24 10:32:56 +00:00
Almeida
8e3ab32942
refactor!: return void on bans/kick/addRole/removeRole methods ( #10714 )
...
BREAKING CHANGE: The following methods don't return anything: `GuildMember#ban`, `GuildMember#kick`, `GuildMemberManager#ban`, `GuildMemberManager#unban`, `GuildMemberManager#kick`, `GuildMemberManager#addRole`, `GuildMemberManager#removeRole`, `GuildBanManager#create`, and `GuildBanManager#remove`.
2025-01-24 10:21:40 +00:00
Almeida
bbec50b134
style: require file extensions in file imports ( #10724 )
2025-01-24 10:17:02 +00:00
Almeida
db3cb48246
refactor: use throw instead of Promise.reject ( #10712 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Renegade334 <Renegade334@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-24 09:39:05 +00:00
Jiralite
702a3762d1
test: Fix collector tests ( #10725 )
...
test: fix collector tests
2025-01-24 09:34:30 +00:00
Naiyar
a3fa1a8dcd
feat(interactions): add launchActivity method ( #10646 )
...
* feat(interactions): add launchActivity method
* chore: suggestion
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: suggestion
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: overload and add tests
* chore: wording
* chore: wording
* chore: spacing
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-24 09:11:18 +00:00
Jiralite
3d85d96f08
docs(guild): Remove "all" for listing guild members ( #10719 )
...
docs(guild): remove "all" for listing
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-24 09:03:43 +00:00
Almeida
687e2ae672
refactor!: use AsyncEventEmitter instead of EventEmitter ( #10710 )
...
BREAKING CHANGE: The `BaseClient`, `Shard`, `ShardingManager`, and `Collector` classes now extend `AsyncEventEmitter` instead of `EventEmitter`.
2025-01-23 09:20:05 +00:00
Naiyar
aa90f00d11
types(interactions): fix overloads ( #10702 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-01-18 19:19:41 +00:00
Danial Raza
ad6b006d35
refactor: standardize export style to named exports ( #10630 )
...
* refactor: standardize export style to named exports
* refactor: export enums directly
* fix: update importing in generateRequires script
* fix: missed places
* feat: add eslint rule
* fix: ci errors
* fix: leftovers
* fix: remove accidentally readded interaction response
* fix: remove interaction response export
* fix: correct collection export
* chore: add another eslint rule
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-18 18:58:28 +00:00
Danial Raza
c6e16c3675
types(ThreadOnlyChannel): remove incorrect messages property ( #10708 )
...
* types(ThreadOnlyChannel): remove incorrect `messages` property
Co-authored-by: TÆMBØ <TAEMBO@users.noreply.github.com >
* test: t e s t s
* test: revamp tests
---------
Co-authored-by: TÆMBØ <TAEMBO@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-01-18 07:38:00 +00:00
Vlad Frangu
052ed7fbe7
chore: backport-candidate GitHub label ( #10623 )
...
* chore: backport-candidate GitHub label
* chore: sort label script
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-18 07:22:50 +00:00
Danial Raza
21096884b1
types: add undefined to flags for exactOptionalPropertyTypes ( #10707 )
2025-01-16 19:34:10 +00:00
Idris
0c40bc195e
refactor(Emoji)!: make imageURL() change extension dynamically ( #10613 )
...
BREAKING CHANGE: Image URLs of emojis now automatically return GIF or static extensions.
BREAKING CHANGE: `CDN#emoji()` now has an `animated` required parameter.
2025-01-16 09:59:28 +00:00
Jiralite
e2bbfe7b13
refactor!: Return only snowflakes for bulk delete ( #10704 )
...
BREAKING CHANGE: Bulk deleting will only return the message ids that were deleted.
---------
Co-authored-by: Almeida <github@almeidx.dev >
2025-01-16 09:47:15 +00:00
Danial Raza
6a42c5f929
fix!: move crosspost() to GuildMessageManager ( #10703 )
...
BREAKING CHANGE: The `crosspost()` method from `MessageManager` has been moved to `GuildMessageManager`.
2025-01-15 11:29:35 +00:00
Naiyar
1fd587c935
types: Allow only ephemeral for defer reply ( #10696 )
...
* fix(types): remove unusable flags from InteractionDeferReplyOptions
* fix: include flags in WebhookMessageEditOptions
* chore: update jsdoc
* fix: wrong order
* chore: specify the flag
* chore: extend MessageEditOptions
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-01-14 14:16:33 +00:00
Naiyar
a65c982ddb
feat(PartialGroupDMChannel): add missing properties ( #10502 )
...
* fix(PartialGroupDMChannel): add missing ownerId property
* refactor: make ownerID nullable
* feat: add last_message_id & last_pin_timestamp prop
* feat: add component collector methods
* fix: handle null case
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-14 09:22:14 +00:00
Almeida
18ab0cf62a
refactor(actions): removed unnecessary actions ( #10666 )
...
Removed actions that were only being used in their
respective websocket handlers. The remaining
actions either were either being used elsewhere or
were using methods from the `GenericAction` class.
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
2025-01-13 11:29:57 +00:00