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
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
Almeida
d08a57cadd
feat: add chatInputApplicationCommandMention formatter ( #8546 )
...
feat: add `chatInputApplicationCommandMention()` formatter
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-03 07:17:06 +00: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
Jiralite
a7deb8f898
feat: Add channel & message URL formatters ( #8371 )
2022-07-29 10:47:23 +02:00
A. Román
5d8bd030d6
fix(Formatters): add newline in codeBlock ( #8369 )
2022-07-27 12:09:34 +02:00
ckohen
bbdb5d980b
revert: refactor: move eslint.tsconfig.json to root ( #8159 )
2022-06-23 12:36:42 +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
iCrawl
6b8ef20cb3
style: cleanup tests and tsup configs
2022-06-04 15:21:57 +02:00
Parbez
4515a1ea80
chore: bump shapeshift for faster object validation ( #7914 )
2022-05-12 12:09:50 +02:00
Suneet Tipirneni
29293d7bbb
refactor: use arrays instead of rest parameters for builders ( #7759 )
2022-04-21 18:56:10 +02:00
Jiralite
78a3afcd7f
refactor: Remove nickname parsing ( #7736 )
...
* refactor: remove nickname parsing
* types: remove nickname import
* chore: update guildmember
* refactor: keep parsing
* refactor: string from user instead
2022-04-12 17:15:38 +02:00
Parbez
3c0bbac82f
refactor: replace zod with shapeshift ( #7547 )
2022-04-09 11:37:16 +02: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
Parbez
8478d2f4de
refactor(Embed): remove add field ( #7522 )
2022-03-02 10:37:30 +01:00
Almeida
b3fa2ece40
refactor(embed): remove array support in favor of rest params ( #7498 )
2022-02-20 13:38:13 +01:00
Suneet Tipirneni
f7257f0765
feat: add missing v13 component methods ( #7466 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2022-02-18 01:04:34 +01:00
Suneet Tipirneni
e8252ed3b9
refactor: make public builder props getters ( #7422 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2022-02-13 13:06:11 +01:00
Rodry
bcc5cda8a9
feat(embed): add setFields ( #7322 )
2022-01-24 20:26:23 +01:00
Noel
16390efe6e
chore: monorepo setup ( #7175 )
2022-01-07 17:18:25 +01:00