mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
docs(InteractionResponses): replace outdated Embed example for reply (#7875)
This commit is contained in:
@@ -91,7 +91,7 @@ class InteractionResponses {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
* // Create an ephemeral reply with an embed
|
* // Create an ephemeral reply with an embed
|
||||||
* const embed = new Embed().setDescription('Pong!');
|
* const embed = new EmbedBuilder().setDescription('Pong!');
|
||||||
*
|
*
|
||||||
* interaction.reply({ embeds: [embed], ephemeral: true })
|
* interaction.reply({ embeds: [embed], ephemeral: true })
|
||||||
* .then(() => console.log('Reply sent.'))
|
* .then(() => console.log('Reply sent.'))
|
||||||
|
|||||||
Reference in New Issue
Block a user