Almeida
017176926a
refactor: move full validation to ChatInputCommandBuilder ( #11304 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2026-01-16 16:54:51 +00:00
Jiralite
a57b4d4d29
fix: Allow mixing subcommands with subcommand groups ( #11303 )
...
fix: allow subcommand with groups
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-11-30 16:48:19 +00:00
Jiralite
8162ae8ce0
test: Add toJSON() to tests ( #11321 )
...
test: fix validation
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-11-30 16:41:48 +00:00
Jiralite
b66f52f9aa
feat!: More label components and text display in modal ( #11078 )
...
BREAKING CHANGE: Modals only have adding (no setting) and splicing has been replaced with a generalised splice method to support all components.
2025-09-14 09:09:56 +01:00
Jiralite
f7c77a73de
feat(builders)!: Support select in modals ( #11034 )
...
BREAKING CHANGE: Text inputs no longer accept a label.
BREAKING CHANGE: Modals now only set labels instead of action rows.
2025-09-05 17:56:14 +01:00
Jiralite
1dfc511e4f
fix(contextMenu): Remove regular expression validation ( #10994 )
...
* fix: remove regex validation
* test: remove incorrect test
This is fine to create.
* fix: guard against whitespace
2025-07-16 15:47:29 +00: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
Jiralite
9a400730f5
test: Include type checks on builders ( #10692 )
...
test: include type checks on builders
2025-01-05 12:16:25 +00:00
Jiralite
a69600546a
docs: Typos ( #10628 )
...
chore: typos
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-11-29 17:39:24 +00:00
Jiralite
9d62ff57d6
refactor(commands): Use Locale over LocaleString ( #10624 )
...
* refactor: use `Locale`
* test: update `LocaleString` tests
2024-11-28 17:33:40 +00:00
Denis Cristea
ab32f26cbb
refactor: builders ( #10448 )
...
BREAKING CHANGE: formatters export removed (prev. deprecated)
BREAKING CHANGE: `SelectMenuBuilder` and `SelectMenuOptionBuilder` have been removed (prev. deprecated)
BREAKING CHANGE: `EmbedBuilder` no longer takes camalCase options
BREAKING CHANGE: `ActionRowBuilder` now has specialized `[add/set]X` methods as opposed to the current `[add/set]Components`
BREAKING CHANGE: Removed `equals` methods
BREAKING CHANGE: Sapphire -> zod for validation
BREAKING CHANGE: Removed the ability to pass `null`/`undefined` to clear fields, use `clearX()` instead
BREAKING CHANGE: Renamed all "slash command" symbols to instead use "chat input command"
BREAKING CHANGE: Removed `ContextMenuCommandBuilder` in favor of `MessageCommandBuilder` and `UserCommandBuilder`
BREAKING CHANGE: Removed support for passing the "string key"s of enums
BREAKING CHANGE: Removed `Button` class in favor for specialized classes depending on the style
BREAKING CHANGE: Removed nested `addX` styled-methods in favor of plural `addXs`
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Almeida <github@almeidx.dev >
2024-10-01 19:11:56 +03:00
Amgelo563
b2970bb2dd
feat(SlashCommandBuilder): Add explicit command type when building ( #10395 )
...
* feat(SlashCommandBuilder): add explicit command type when building
* test: add tests
* chore: merge import
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: almeidx <github@almeidx.dev >
2024-07-21 15:08:24 +00:00
TÆMBØ
9c76bbea17
feat: add user-installable apps support ( #10348 )
...
* feat(SlashCommandBuilder): `addContexts()` and `addIntegrationTypes()`
* Add methods to ContextMenuCommandbuilder
* Fix JSDoc
* Use `setX` over `addX`
* Fix tests
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-06-27 18:56:47 +00:00
Qjuh
07c12101e5
fix: slashcommand builder type split ( #10253 )
2024-05-05 10:03:14 +00:00
LeCarbonator
a1a3a95c94
feat: allow RestOrArray for command option builders ( #10175 )
...
* feat(builders): allow RestOrArray for command option builders
change ApplicationCommandOption methods to allow both rest and array params,
which previously wasn't consistent with other builders.
* chore: merge imports
---------
Co-authored-by: almeidx <github@almeidx.dev >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-03-24 18:12:05 +00:00
iCrawl
d37632da05
build: refactor linting
2023-08-22 09:40:11 +02:00
iCrawl
48cab844d4
build: switch to bundler moduleResolution
2023-05-01 13:14:13 +02: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
1c5b78fd21
fix(SlashCommandBuilder): missing methods in subcommand builder ( #8583 )
2022-09-15 20:19:13 +02:00
iCrawl
3b7ba4062e
chore: fix leftover eslint exceptions
2022-09-01 21:26:09 +02:00
Suneet Tipirneni
edadb9fe5d
refactor: use eslint-config-neon for packages. ( #8579 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2022-09-01 20:50:16 +02:00
Almeida
b7e62380f2
test(builders): improve coverage ( #8274 )
2022-07-17 21:20:26 +02:00
Tiemen
32f9056b15
fix: slash command name regex ( #8265 )
2022-07-17 18:52:18 +02:00
Parbez
96c8d21f95
feat(builder): add max min length in string option ( #8214 )
2022-07-07 20:45:32 +02:00
Rodry
ad75be9a9c
feat: allow builders to accept rest params and arrays ( #7874 )
...
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: Khafra <42794878+KhafraDev@users.noreply.github.com >
2022-06-05 23:29:16 +02:00
iCrawl
8d8e6c03de
feat: use vitest instead of jest for more speed
2022-06-05 01:07:10 +02:00
Vlad Frangu
7ce641d33a
fix(SlashCommandBuilder): import Permissions correctly ( #7921 )
2022-05-14 22:47:26 +02:00
Vlad Frangu
c1b5e731da
fix: add localizations for subcommand builders and option choices ( #7862 )
2022-05-12 10:32:27 +02:00
Suneet Tipirneni
29293d7bbb
refactor: use arrays instead of rest parameters for builders ( #7759 )
2022-04-21 18:56:10 +02:00
Suneet Tipirneni
40b9a1d67d
feat: Slash command localization for builders ( #7683 )
...
* feat: add slash command localizations
* chore: make requested changes
* chore: make requested changes
* fix: prevent unnecessary spread
* chore: make requested changes
* chore: don't allow maps
2022-04-17 10:58:20 +02:00
Suneet Tipirneni
72577c4bfd
feat: add API v10 support ( #7477 )
...
* feat: add API v10 support
* refactor: update deps
* chore: rebase fixes
2022-03-15 21:37:07 +01:00
Suneet Tipirneni
549716e4fc
refactor: Don't return builders from API data ( #7584 )
...
* refactor: don't return builders from API data
* Update packages/discord.js/src/structures/ActionRow.js
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
* fix: circular dependency
* fix: circular dependency pt.2
* chore: make requested changes
* chore: bump dapi-types
* chore: convert text input
* chore: convert text input
* feat: handle cases of unknown component types better
* refactor: refactor modal to builder
* feat: add #from for easy builder conversions
* refactor: make requested changes
* chore: make requested changes
* style: fix linting error
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: almeidx <almeidx@pm.me >
2022-03-12 19:39:23 +01:00
Almeida
10607dbdaf
refactor: remove obsolete builder methods ( #7590 )
2022-03-06 16:27:17 +01:00
Suneet Tipirneni
ed92015634
feat: Add Modals and Text Inputs ( #7023 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Ryan Munro <monbrey@gmail.com >
Co-authored-by: Vitor <milagre.vitor@gmail.com >
2022-03-04 08:53:41 +01:00
Skick
3baa340821
fix(builders): allow negative min/max value of number/integer option ( #7484 )
2022-02-20 13:43:50 +01:00
Amitoj Singh
ae0f35f51d
feat(builders): add attachment command option type ( #7203 )
2022-02-13 14:02:14 +01:00
Ben
f4953647ff
refactor(builders-methods): make methods consistent ( #7395 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-02-12 19:03:13 +01:00
Noel
16938da355
chore: improve linting ( #7244 )
2022-01-11 12:30:08 +01:00
Noel
16390efe6e
chore: monorepo setup ( #7175 )
2022-01-07 17:18:25 +01:00