mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
feat(modals): modals, input text components and modal submits, v13 style (#7431)
This commit is contained in:
@@ -679,6 +679,8 @@ client.on('interaction', async interaction => {
|
||||
|
||||
void new MessageActionRow();
|
||||
|
||||
void new MessageActionRow({});
|
||||
|
||||
const button = new MessageButton();
|
||||
|
||||
const actionRow = new MessageActionRow({ components: [button] });
|
||||
@@ -688,9 +690,6 @@ client.on('interaction', async interaction => {
|
||||
// @ts-expect-error
|
||||
interaction.reply({ content: 'Hi!', components: [[button]] });
|
||||
|
||||
// @ts-expect-error
|
||||
void new MessageActionRow({});
|
||||
|
||||
// @ts-expect-error
|
||||
await interaction.reply({ content: 'Hi!', components: [button] });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user