docs(InteractionResponses): move embed var position in example (#6896)

This commit is contained in:
GodderE2D
2021-10-27 10:08:20 +11:00
committed by GitHub
parent acbfc5c866
commit 88060395d1

View File

@@ -74,13 +74,13 @@ class InteractionResponses {
* @returns {Promise<Message|APIMessage|void>}
* @example
* // Reply to the interaction and fetch the response
* const embed = new MessageEmbed().setDescription('Pong!');
*
* interaction.reply({ content: 'Pong!', fetchReply: true })
* .then((message) => console.log(`Reply sent with content ${message.content}`))
* .catch(console.error);
* @example
* // Create an ephemeral reply with an embed
* const embed = new MessageEmbed().setDescription('Pong!');
*
* interaction.reply({ embeds: [embed], ephemeral: true })
* .then(() => console.log('Reply sent.'))
* .catch(console.error);