Merge pull request #261 from archubbuck/patch-1
Adds support for slash commands with no options
This commit is contained in:
commit
8082ade700
@ -738,7 +738,7 @@ class ApplicationCommand extends Base {
|
||||
'is not a valid sub command',
|
||||
);
|
||||
}
|
||||
const valueRequired = subCommand.options.filter(o => o.required).length;
|
||||
const valueRequired = subCommand.options?.filter(o => o.required).length;
|
||||
for (let i = 0; i < options.length; i++) {
|
||||
const optionInput = subCommand.options[i];
|
||||
const value = options[i];
|
||||
|
Loading…
Reference in New Issue
Block a user