LogoRobo.js
Packages@robojs/discordjs

getCommandKey()

Function: getCommandKey()

function getCommandKey(interaction): string

Get the command key from an interaction (including subcommands)

Parameters

ParameterType
interaction| ChatInputCommandInteraction<CacheType> | AutocompleteInteraction<CacheType> | { commandName: string; options: { getSubcommand: () => string; getSubcommandGroup: () => string; }; }

Returns

string

On this page