mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
docs: update UserContextMenuCommandInteraction documentation (#8717)
* Updated documentation for UserContextMenuCommandInteraction class * Apply suggestions from code review Co-authored-by: A. Román <kyradiscord@gmail.com> Co-authored-by: Noel <buechler.noel@outlook.com> Co-authored-by: A. Román <kyradiscord@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@ class BaseInteraction extends Base {
|
|||||||
this.guildId = data.guild_id ?? null;
|
this.guildId = data.guild_id ?? null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The user which sent this interaction
|
* The user who created this interaction
|
||||||
* @type {User}
|
* @type {User}
|
||||||
*/
|
*/
|
||||||
this.user = this.client.users._add(data.user ?? data.member.user);
|
this.user = this.client.users._add(data.user ?? data.member.user);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class ContextMenuCommandInteraction extends CommandInteraction {
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The id of the target of the interaction
|
* The id of the target of this interaction
|
||||||
* @type {Snowflake}
|
* @type {Snowflake}
|
||||||
*/
|
*/
|
||||||
this.targetId = data.data.target_id;
|
this.targetId = data.data.target_id;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const ContextMenuCommandInteraction = require('./ContextMenuCommandInteraction')
|
|||||||
*/
|
*/
|
||||||
class UserContextMenuCommandInteraction extends ContextMenuCommandInteraction {
|
class UserContextMenuCommandInteraction extends ContextMenuCommandInteraction {
|
||||||
/**
|
/**
|
||||||
* The user this interaction was sent from
|
* The target user from this interaction
|
||||||
* @type {User}
|
* @type {User}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
@@ -17,7 +17,7 @@ class UserContextMenuCommandInteraction extends ContextMenuCommandInteraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The member this interaction was sent from
|
* The target member from this interaction
|
||||||
* @type {?(GuildMember|APIGuildMember)}
|
* @type {?(GuildMember|APIGuildMember)}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user