mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user