feat(CommandInteractionResolvedData): access to "raw" resolved data (#6384)

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
monbrey
2021-08-13 00:04:40 +10:00
committed by GitHub
parent d9456a1a76
commit fff887b2f4
5 changed files with 83 additions and 2 deletions

View File

@@ -15,7 +15,11 @@ class ContextMenuInteraction extends BaseCommandInteraction {
* The target of the interaction, parsed into options
* @type {CommandInteractionOptionResolver}
*/
this.options = new CommandInteractionOptionResolver(this.client, this.resolveContextMenuOptions(data.data));
this.options = new CommandInteractionOptionResolver(
this.client,
this.resolveContextMenuOptions(data.data),
this.transformResolved(data.data.resolved),
);
/**
* The id of the target of the interaction