From fbdad6eac38e262a7045853174607c408cd6c59c Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Fri, 2 Jul 2021 19:51:59 +0100 Subject: [PATCH] docs(*): add class links to isX() methods (#6007) --- src/structures/Channel.js | 5 +++-- src/structures/Interaction.js | 8 ++++---- src/structures/interfaces/InteractionResponses.js | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/structures/Channel.js b/src/structures/Channel.js index 083a30ee4e0f..817f35e320c3 100644 --- a/src/structures/Channel.js +++ b/src/structures/Channel.js @@ -103,7 +103,8 @@ class Channel extends Base { } /** - * Indicates whether this channel is text-based. + * Indicates whether this channel is text-based + * ({@link TextChannel}, {@link DMChannel}, {@link NewsChannel} or {@link ThreadChannel}). * @returns {boolean} */ isText() { @@ -111,7 +112,7 @@ class Channel extends Base { } /** - * Indicates whether this channel is a thread channel. + * Indicates whether this channel is a {@link ThreadChannel}. * @returns {boolean} */ isThread() { diff --git a/src/structures/Interaction.js b/src/structures/Interaction.js index ee7140fb527a..7f0559992334 100644 --- a/src/structures/Interaction.js +++ b/src/structures/Interaction.js @@ -114,7 +114,7 @@ class Interaction extends Base { } /** - * Indicates whether this interaction is a command interaction. + * Indicates whether this interaction is a {@link CommandInteraction}. * @returns {boolean} */ isCommand() { @@ -122,7 +122,7 @@ class Interaction extends Base { } /** - * Indicates whether this interaction is a message component interaction. + * Indicates whether this interaction is a {@link MessageComponentInteraction}. * @returns {boolean} */ isMessageComponent() { @@ -130,7 +130,7 @@ class Interaction extends Base { } /** - * Indicates whether this interaction is a button interaction. + * Indicates whether this interaction is a {@link ButtonInteraction}. * @returns {boolean} */ isButton() { @@ -141,7 +141,7 @@ class Interaction extends Base { } /** - * Indicates whether this interaction is a select menu interaction. + * Indicates whether this interaction is a {@link SelectMenuInteraction}. * @returns {boolean} */ isSelectMenu() { diff --git a/src/structures/interfaces/InteractionResponses.js b/src/structures/interfaces/InteractionResponses.js index c01cd4f31472..3e9c2e64a9f6 100644 --- a/src/structures/interfaces/InteractionResponses.js +++ b/src/structures/interfaces/InteractionResponses.js @@ -62,7 +62,7 @@ class InteractionResponses { * // Reply to the interaction with an embed * const embed = new MessageEmbed().setDescription('Pong!'); * - * interaction.reply(embed) + * interaction.reply({ embeds: [embed] }) * .then(console.log) * .catch(console.error); * @example