Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update UserContextMenuCommandInteraction documentation #8717

Merged
merged 3 commits into from Oct 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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