Adds support for slash commands with no options
This commit is contained in:
parent
666cddf9f0
commit
80278d3e0d
@ -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