mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
docs(*): add class links to isX() methods (#6007)
This commit is contained in:
@@ -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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isText() {
|
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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isThread() {
|
isThread() {
|
||||||
|
|||||||
@@ -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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isCommand() {
|
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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isMessageComponent() {
|
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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isButton() {
|
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}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isSelectMenu() {
|
isSelectMenu() {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class InteractionResponses {
|
|||||||
* // Reply to the interaction with an embed
|
* // Reply to the interaction with an embed
|
||||||
* const embed = new MessageEmbed().setDescription('Pong!');
|
* const embed = new MessageEmbed().setDescription('Pong!');
|
||||||
*
|
*
|
||||||
* interaction.reply(embed)
|
* interaction.reply({ embeds: [embed] })
|
||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
|
|||||||
Reference in New Issue
Block a user