mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
docs(InteractionResponses): move embed var position in example (#6896)
This commit is contained in:
@@ -74,13 +74,13 @@ class InteractionResponses {
|
|||||||
* @returns {Promise<Message|APIMessage|void>}
|
* @returns {Promise<Message|APIMessage|void>}
|
||||||
* @example
|
* @example
|
||||||
* // Reply to the interaction and fetch the response
|
* // Reply to the interaction and fetch the response
|
||||||
* const embed = new MessageEmbed().setDescription('Pong!');
|
|
||||||
*
|
|
||||||
* interaction.reply({ content: 'Pong!', fetchReply: true })
|
* interaction.reply({ content: 'Pong!', fetchReply: true })
|
||||||
* .then((message) => console.log(`Reply sent with content ${message.content}`))
|
* .then((message) => console.log(`Reply sent with content ${message.content}`))
|
||||||
* .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 MessageEmbed().setDescription('Pong!');
|
||||||
|
*
|
||||||
* interaction.reply({ embeds: [embed], ephemeral: true })
|
* interaction.reply({ embeds: [embed], ephemeral: true })
|
||||||
* .then(() => console.log('Reply sent.'))
|
* .then(() => console.log('Reply sent.'))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
|
|||||||
Reference in New Issue
Block a user