Packages@robojs/discordjs
getCommandKey()
Function: getCommandKey()
function getCommandKey(interaction): stringGet the command key from an interaction (including subcommands)
Parameters
| Parameter | Type |
|---|---|
interaction | | ChatInputCommandInteraction<CacheType> | AutocompleteInteraction<CacheType> | { commandName: string; options: { getSubcommand: () => string; getSubcommandGroup: () => string; }; } |
Returns
string
