mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
docs(InteractionResponses): reply docs example (#6079)
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
This commit is contained in:
@@ -63,12 +63,12 @@ class InteractionResponses {
|
|||||||
* const embed = new MessageEmbed().setDescription('Pong!');
|
* const embed = new MessageEmbed().setDescription('Pong!');
|
||||||
*
|
*
|
||||||
* interaction.reply({ embeds: [embed] })
|
* interaction.reply({ embeds: [embed] })
|
||||||
* .then(console.log)
|
* .then(() => console.log('Reply sent.'))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
* // Create an ephemeral reply
|
* // Create an ephemeral reply
|
||||||
* interaction.reply({ content: 'Pong!', ephemeral: true })
|
* interaction.reply({ content: 'Pong!', ephemeral: true })
|
||||||
* .then(console.log)
|
* .then(() => console.log('Reply sent.'))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
async reply(options) {
|
async reply(options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user