docs(InteractionResponses): reply docs example (#6079)

Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
This commit is contained in:
anandre
2021-07-08 15:16:03 -05:00
committed by GitHub
parent 67e9ce4693
commit b170fb5ce8

View File

@@ -63,12 +63,12 @@ class InteractionResponses {
* const embed = new MessageEmbed().setDescription('Pong!');
*
* interaction.reply({ embeds: [embed] })
* .then(console.log)
* .then(() => console.log('Reply sent.'))
* .catch(console.error);
* @example
* // Create an ephemeral reply
* interaction.reply({ content: 'Pong!', ephemeral: true })
* .then(console.log)
* .then(() => console.log('Reply sent.'))
* .catch(console.error);
*/
async reply(options) {