Skip to content

Commit

Permalink
docs: update UserContextMenuCommandInteraction documentation (#8717)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
4 people committed Oct 9, 2022
1 parent 4c2955a commit 7556db2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/BaseInteraction.js
Expand Up @@ -53,7 +53,7 @@ class BaseInteraction extends Base {
this.guildId = data.guild_id ?? null;

/**
* The user which sent this interaction
* The user who created this interaction
* @type {User}
*/
this.user = this.client.users._add(data.user ?? data.member.user);
Expand Down
Expand Up @@ -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}
*/
this.targetId = data.data.target_id;
Expand Down
Expand Up @@ -8,7 +8,7 @@ const ContextMenuCommandInteraction = require('./ContextMenuCommandInteraction')
*/
class UserContextMenuCommandInteraction extends ContextMenuCommandInteraction {
/**
* The user this interaction was sent from
* The target user from this interaction
* @type {User}
* @readonly
*/
Expand All @@ -17,7 +17,7 @@ class UserContextMenuCommandInteraction extends ContextMenuCommandInteraction {
}

/**
* The member this interaction was sent from
* The target member from this interaction
* @type {?(GuildMember|APIGuildMember)}
* @readonly
*/
Expand Down

0 comments on commit 7556db2

Please sign in to comment.