Skip to content

Commit

Permalink
docs(*): add class links to isX() methods (#6007)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry authored Jul 2, 2021
1 parent fe6cc0c commit fbdad6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/structures/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ 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() {
return 'messages' in this;
}

/**
* Indicates whether this channel is a thread channel.
* Indicates whether this channel is a {@link ThreadChannel}.
* @returns {boolean}
*/
isThread() {
Expand Down
8 changes: 4 additions & 4 deletions src/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,23 @@ class Interaction extends Base {
}

/**
* Indicates whether this interaction is a command interaction.
* Indicates whether this interaction is a {@link CommandInteraction}.
* @returns {boolean}
*/
isCommand() {
return InteractionTypes[this.type] === InteractionTypes.APPLICATION_COMMAND;
}

/**
* Indicates whether this interaction is a message component interaction.
* Indicates whether this interaction is a {@link MessageComponentInteraction}.
* @returns {boolean}
*/
isMessageComponent() {
return InteractionTypes[this.type] === InteractionTypes.MESSAGE_COMPONENT;
}

/**
* Indicates whether this interaction is a button interaction.
* Indicates whether this interaction is a {@link ButtonInteraction}.
* @returns {boolean}
*/
isButton() {
Expand All @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/structures/interfaces/InteractionResponses.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbdad6e

Please sign in to comment.