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
Jiralite
4d19426810
fix(textInput): Value must be at least 1 character in length ( #10805 )
...
fix(textInput): value must be at least 1 in length
2025-03-17 15:31:44 +00:00
Muhammad Nizamuddin Aulia
79b79b6a44
fix(create-discord-bot): register command files in subdirectories ( #10775 )
...
* feat(create-discord-bot): add user command in utility subdirectory
* fix(create-discord-bot): command files in the subdirectory were skipped
* fix(create-discord-bot): fix command files in subdirectory were skipped in Deno template
* fix: minor fix
* fix: lint
* refactor: suggested changes
revert: unrelated change
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-03-16 18:38:48 +00:00
Jiralite
eabcc52594
refactor(constants): Update guide URL ( #10803 )
...
refactor(constants): update guide URL
2025-03-16 17:18:25 +00:00
Qjuh
a151424261
fix(website): correctly link type parameters in docs ( #10801 )
2025-03-15 22:39:29 +00:00
Denis-Adrian Cristea
09beb8a6a0
feat: message builder ( #10793 )
...
* feat: attachment builder
* feat: message builder
* chore: nits
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* fix: nonce assertion
* chore: strip bad method
* chore: nit
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: nits
* chore: address final review
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2025-03-14 08:09:15 +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
12638cd43c
fix(embed): Allow attachment protocols for thumbnails and images ( #10795 )
...
fix(embed): allow attachment protocols for thumbnails and images
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-07 20:19:14 +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
e273afbb93
feat: override groupBy to return Collection ( #10791 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-03-05 20:19:20 +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
Denis-Adrian Cristea
28a945069f
fix(ContextMenuCommandBuilder): allow emoji in name ( #10790 )
...
* fix(ContextMenuCommandBuilder): allow emoji in name
* test: add emoji from 16.0
https://emojipedia.org/fingerprint
* chore: non rule-breaking regex
* feat: use simplified regex
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
* style: prettier
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com >
2025-03-05 12:15:54 +00:00
Almeida
d1f56ffb2a
fix: poll builders ( #10783 )
...
* fix: poll builders
- Fixed validations
- Added missing documentation
- Removed redundant code
- Consistency™️
* fix: tests
* feat: missing answers test
2025-03-01 14:57:00 +00: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
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
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
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