Almeida
a6685a319e
build: bump dependencies ( #10671 )
2024-12-31 21:31:34 +01: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
Qjuh
62fb9de9c9
docs: allow @mixes TSDoc tag for documenting mixins ( #10545 )
2024-10-16 02:31:04 +02:00
Denis Cristea
8ab4124ef9
feat: implement zod-validation-error ( #10534 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-10-06 14:43:06 +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
Synbulat Biishev
fc0b6f7f8e
feat: user-installable apps ( #10227 )
...
* feat: inital user-installable apps support
* docs: add deprecation warnings
* feat: add equality checks
* fix: possibly `null` cases
* docs: tweaks
* docs: add deprecations
* fix(ApplicationCommandManager): amend transform command
* feat: properly support `integration_types_config`
* docs: add .
* docs: minor changes
* featBaseApplicationCommandData): update type
* style: prettier
* chore: fix issues
* fix: correct casing
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
* refactor: remove console log
* fix: use case that satisfies `/core` and the API
* fix: `oauth2InstallParams` property is not nullable
* fix: do not convert keys into strings
* feat: update transforer to return the full map
* feat: update transformers
* feat: add `PartialGroupDMMessageManager `
Hope this is not a breaking change
* docs: fix type
* feat: add approximate count of users property
* fix: messageCreate doesn't emit in PartialGroupDMChannel
* fix: add GroupDM to TextBasedChannelTypes
* feat: add NonPartialGroupDMChannel helper
* fix: expect PartialGroupDMChannel
* feat: narrow generic type
* test: exclude PartialGroupDMChannel
* feat: use structure's channel type
* docs: narrow type
* feat: remove transformer
* refactor: remove unnecessary parse
* feat: add APIAutoModerationAction transformer
* fix: use the right transformer during recursive parsing of interaction metadata
* docs: add external types
* docs: add `Message#interactionMetadata` property docs
* docs: make nullable
* docs: add d-docs link
* docs: use optional
* fix: make `oauth2InstallParams` nullable
* types: update `IntegrationTypesConfiguration`
Co-authored-by: Almeida <github@almeidx.dev >
* docs: update `IntegrationTypesConfigurationParameters`
Co-authored-by: Almeida <github@almeidx.dev >
* types: update `IntegrationTypesConfigurationParameters`
* refactor: improve readability
* docs: mark integrationTypesConfig nullable
* refactor: requested changes
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Almeida <github@almeidx.dev >
2024-09-01 20:44:51 +00:00
Jeroen Claassens
2d5531f35c
feat(builders): update to @sapphire/shapeshift v4 ( #10291 )
...
feat: update to @sapphire/shapeshift v4
2024-08-19 18:15:30 +00: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
Jiralite
4f59b740d0
feat: Premium buttons ( #10353 )
...
* feat: premium buttons
* docs: deprecation string
* feat(InteractionResponses): add deprecation message
* feat(builders): add tests
* chore: remove @ts-expect-errors
* test: update method name
* refactor(formatters): stricter types
* docs: deprecate method in typings
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-07-04 18:57:35 +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
Jiralite
15021990e8
build: Bump discord-api-types to 0.37.90 ( #10354 )
...
build: bump discord-api-types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-18 18:37:16 +00:00
CodeGoat
aae2faf9e9
docs(SelectMenuBuilder): correct grammatical errors ( #10309 )
...
docs(SelectMenuBuilder): correct documentation
Corrects gramatical errors in the documentation for various set methods.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-02 15:19:11 +00:00
CodeGoat
c1e6890132
docs(TextInputBuilder): correct constructor documentation ( #10308 )
...
feat(builders): fix text input docs
Fixes incorrect references to select menu options in text input docs.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-02 12:42:11 +00:00
CodeGoat
29a50bb476
docs(MappedComponentTypes): fix "inpiut" typo ( #10306 )
...
* Fix typo in components
Fixes a typo in components.
* docs: an -> a
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-05-30 22:41:43 +00:00
TÆMBØ
29fd89f23c
fix(SlashCommandBuilder): add missing shared properties ( #10255 )
...
* types(SlashCommandBuilder): add missing shared properties
* Add tests for types
* Fix formatting
* Enable Vitest type checking
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2024-05-15 17:36:02 +00:00
Qjuh
07c12101e5
fix: slashcommand builder type split ( #10253 )
2024-05-05 10:03:14 +00:00
Parbez
7ea3638dbc
fix: don't mutate user provided array ( #10014 )
...
* fix(builders): don't mutate user provided array
* test: add normalize array tests
* chore: revert vscode autochange
* Update util.test.ts
* refactor: remove unnecessary clone
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Almeida <github@almeidx.dev >
2024-04-30 20:46:21 +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
Qjuh
a0c83a254c
refactor: make builders types great again ( #10026 )
...
* refactor: make builders types great again
* fix: subcommands only type
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-01-22 15:02:34 +00:00
Almeida
975d5f18ae
chore: use descriptive type parameter names ( #9937 )
...
* chore: use descriptive type parameter names
* refactor: requested changes
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-11-12 17:21:51 +00:00
Jaw0r3k
4ff3ea4a1b
feat: default select menu values ( #9867 )
...
* feat: default select menu values
* feat(Message): support
* fix: fix crashes when an array is supplied and remove assertion
* docs(transformResolved): `BaseChannel` is the correct type
* refactor: prefer assignment
* chore: export function again
* fix(Util): fix circular dependency
* refactor(MentionableSelectMenu): clone in method
* docs: remove semicolon
* feat(MentionableSelectMenu): add `addDefaultValues()`
* refactor: reduce overhead
* types: adjust `channel`
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-11-12 16:32:41 +00:00
Jiralite
571aedd58a
feat: Add media channels ( #9662 )
...
* feat: add media channels
* refactor: rename to `ThreadOnlyChannel`
* feat: support media channels more
* docs(ThreadOnlyChannel): update class description
* types: update references
* test: add more tests
* chore: update code
* refactor: `abstract`
Co-authored-by: space <spaceeec@yahoo.com >
---------
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-18 07:35:47 +00:00
iCrawl
d37632da05
build: refactor linting
2023-08-22 09:40:11 +02:00
ShadowAya
75d91b52b3
setNameLocalization typo ( #9656 )
...
fix JSDoc typo in NameAndDescription.ts > setNameLocalization
2023-06-17 14:29:35 +00:00
iCrawl
7c8849fae5
chore: deps
2023-05-12 19:58:51 +02:00
Almeida
54ceedf6c5
refactor: remove @discordjs/util re-export ( #9488 )
2023-05-01 21:47:30 +02:00
Jiralite
ca4de2d9c6
fix(BaseSelectMenuBuilder): Modify class to be abstract ( #9358 )
...
fix(BaseSelectMenuBuilder): abstraction
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-14 21:34:55 +00:00
Jiralite
8073561824
docs(builders): Add some basic documentation ( #9359 )
2023-04-10 22:09:51 +02:00
Jiralite
fbbce3eb4b
fix: Correct @link tags that involve parents ( #9351 )
2023-04-09 11:22:07 +02:00
Jiralite
d66d113333
docs: Use @link in @see ( #9348 )
2023-04-08 23:50:58 +02:00
iCrawl
852fae557e
chore: deps
2023-03-23 14:28:58 +01:00
Synbulat Biishev
4367ab9302
docs(EmbedBuilder#spliceFields): fix a typo ( #9159 )
...
fix(EmbedBuilder#spliceFields): fix a typo
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-05 22:42:35 +00:00
Synbulat Biishev
8b70f497a1
docs: fix version export ( #9049 )
...
* docs: fix version export
* types: assert `[VI]{{inject}}[/VI]` as string
* types: typo
* Revert "types: typo"
This reverts commit ba983f02be .
* types: typo
I hate my local repo. It can't install deps with `--immutable` and a have weird error on `yarn test`, but the CI passes
2023-01-19 15:56:57 +00:00
Almeida
2798ba1eb3
style: run prettier ( #9041 )
2023-01-12 09:23:02 +01:00
Almeida
a6941d536c
feat(StringSelectMenu): add spliceOptions() ( #8937 )
...
* feat(StringSelectMenu): add `spliceOptions()`
* fix: requested changes
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-25 20:38:28 +00:00
Suneet Tipirneni
7a5134459c
feat: add support for nsfw commands ( #7976 )
...
* chore: update
* fix: add edit changes
* chore: make requested changes
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-16 02:04:56 +00:00
Suneet Tipirneni
3fca638a84
feat: add @discordjs/formatters ( #8889 )
...
* feat: add @discordjs/formatters
* chore: make requested changes
* chore: make requested changes
* chore: fix other places
* chore: make requested changes
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-02 12:55:00 +00:00
MrMythicalYT
ec37f137fd
types(Formatters): allow boolean in formatEmoji ( #8823 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-25 17:42:48 +00:00
DD
5152abf728
feat: new select menus ( #8793 )
...
* feat(builders): new select menus
* chore: better re-exporting of deprecated classes
* feat: new select menus
* chore: typings
* chore: add missing todo comment
* chore: finish updating tests
* chore: add runtime deprecation warnings
* chore: format deprecation warning
* feat(BaseInteraction): isAnySelectMenu
* chore: requested changes
* fix: deprecation comments
* chore: update @deprecated comments in typings
* chore: add tests for select menu type narrowing
* fix: bad auto imports
Co-authored-by: Julian Vennen <julian@aternos.org >
* fix: properly handle resolved members
* fix: collectors
* chore: suggested changes
Co-authored-by: Almeida <almeidx@pm.me >
* fix(typings): bad class extends
* feat(ChannelSelectMenuBuilder): validation
* chore: update todo comment
* refactor(ChannelSelectMenu): better handling of channel_types state
* chore: style nit
* chore: suggested nits
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Julian Vennen <julian@aternos.org >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-01 17:36:05 +00:00
Gabriel Thomé
b5213664fa
feat: allow punctuation characters in context menus ( #8783 )
...
Co-authored-by: Gabriel Thomé <114624098+gabriel-thome-GVNG@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-31 12:28:29 +00:00
Almeida
d587467a38
chore: use @link instead of markdown link in tsdocs ( #8732 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-10 20:03:35 +00:00
Almeida
02ffce8173
chore: make 'Note to developers' on version constant a regular comment ( #8730 )
...
chore: make 'Note to developers' a regular comment
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-10 14:42:03 +00:00
Jeroen Claassens
d923d0ab96
build: switch to esbuild-plugin-version-injector for injecting version strings ( #8723 )
2022-10-08 02:54:45 +02:00
Suneet Tipirneni
b2ec865765
feat: add @discordjs/util ( #8591 )
...
* feat: add @discordjs/util
* fix: builders test
* refactor: make rest use lazy for ESM import
* chore: make requested changes
* Apply suggestions from code review
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
* chore: make requested changes and add tests
* chore: regen lockfile
* test: add type tests
* chore: push missing files
* chore: make requested changes
* chore: update CI stuff
* chore: fix lockfile
* chore: make requested changes
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-02 18:00:31 +00:00
Almeida
b1e190c4f0
fix: allow adding forums to channelTypes ( #8658 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-24 13:37:41 +00:00
Almeida
8444576f45
docs(builders/components): document constructors ( #8636 )
2022-09-19 02:32:28 +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
Almeida
f3ce4a75d0
docs: use remarks instead of Note in descriptions ( #8597 )
2022-09-05 18:14:19 +02:00