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:
Cit The Dev
2022-10-10 07:39:05 +11:00
committed by GitHub
parent 4c2955a5de
commit 7556db243d
3 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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
*/ */