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.
This commit is contained in:
Jiralite
2025-09-05 20:56:14 +04:00
committed by GitHub
parent ddf9f818e8
commit f7c77a73de
13 changed files with 364 additions and 115 deletions

View File

@@ -19,7 +19,7 @@ describe('Message', () => {
test('GIVEN bad action row THEN it throws', () => {
const message = new MessageBuilder().addActionRowComponents((row) =>
row.addTextInputComponent((input) => input.setCustomId('abc').setLabel('def')),
row.addTextInputComponent((input) => input.setCustomId('abc')),
);
expect(() => message.toJSON()).toThrow();
});