parent
8580ca551d
commit
fecfa7d03b
@ -697,7 +697,9 @@ class ApplicationCommand extends Base {
|
|||||||
const subGroup = this.options.find(
|
const subGroup = this.options.find(
|
||||||
o => o.name == subCommandArray[0] && o.type == 'SUB_COMMAND_GROUP',
|
o => o.name == subCommandArray[0] && o.type == 'SUB_COMMAND_GROUP',
|
||||||
);
|
);
|
||||||
const subCommand = subGroup.options.find(o => o.name == subCommandArray[1] && o.type == 'SUB_COMMAND');
|
const subCommand = subGroup.options.find(
|
||||||
|
o => o.name == subCommandArray[1] && o.type == 'SUB_COMMAND',
|
||||||
|
);
|
||||||
optionsBuild = [
|
optionsBuild = [
|
||||||
{
|
{
|
||||||
type: ApplicationCommandOptionTypes[subGroup.type],
|
type: ApplicationCommandOptionTypes[subGroup.type],
|
||||||
|
Loading…
Reference in New Issue
Block a user