From 00a7d5932c62ebaf793e2a285178040396970003 Mon Sep 17 00:00:00 2001 From: vunsh Date: Fri, 7 Oct 2022 10:26:14 -0700 Subject: [PATCH 1/2] Update UserContextMenun documentation --- src/structures/ContextMenuInteraction.js | 2 +- src/structures/UserContextMenuInteraction.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/ContextMenuInteraction.js b/src/structures/ContextMenuInteraction.js index f4f6ef47d274..2ddcb9043d8a 100644 --- a/src/structures/ContextMenuInteraction.js +++ b/src/structures/ContextMenuInteraction.js @@ -22,7 +22,7 @@ class ContextMenuInteraction extends BaseCommandInteraction { ); /** - * The id of the target of the interaction + * The id of the target of this interaction * @type {Snowflake} */ this.targetId = data.data.target_id; diff --git a/src/structures/UserContextMenuInteraction.js b/src/structures/UserContextMenuInteraction.js index 98dad00fc93d..a3ef0f59c113 100644 --- a/src/structures/UserContextMenuInteraction.js +++ b/src/structures/UserContextMenuInteraction.js @@ -8,7 +8,7 @@ const ContextMenuInteraction = require('./ContextMenuInteraction'); */ class UserContextMenuInteraction extends ContextMenuInteraction { /** - * The user this interaction was sent from + * The user of the target for this interaction * @type {User} * @readonly */ @@ -17,7 +17,7 @@ class UserContextMenuInteraction extends ContextMenuInteraction { } /** - * The member this interaction was sent from + * The member of the target for this interaction * @type {?(GuildMember|APIGuildMember)} * @readonly */ From 5fa916e4aaa83f2141f845c310958d782751b9a3 Mon Sep 17 00:00:00 2001 From: Noel Date: Sun, 9 Oct 2022 22:26:56 +0200 Subject: [PATCH 2/2] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: A. Román --- src/structures/UserContextMenuInteraction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/UserContextMenuInteraction.js b/src/structures/UserContextMenuInteraction.js index a3ef0f59c113..ba857f35cd98 100644 --- a/src/structures/UserContextMenuInteraction.js +++ b/src/structures/UserContextMenuInteraction.js @@ -8,7 +8,7 @@ const ContextMenuInteraction = require('./ContextMenuInteraction'); */ class UserContextMenuInteraction extends ContextMenuInteraction { /** - * The user of the target for this interaction + * The target user from this interaction * @type {User} * @readonly */ @@ -17,7 +17,7 @@ class UserContextMenuInteraction extends ContextMenuInteraction { } /** - * The member of the target for this interaction + * The target member from this interaction * @type {?(GuildMember|APIGuildMember)} * @readonly */