Fix command with args
This commit is contained in:
parent
84aaeefe00
commit
22079fcc4e
1 changed files with 1 additions and 0 deletions
|
@ -371,6 +371,7 @@ export default {
|
|||
const args = {};
|
||||
|
||||
for (let i = 0; i < command.data.options.length; i++) {
|
||||
if (!messageArgs[i]) continue;
|
||||
const arg = command.data.options[i];
|
||||
const type = arg.constructor.name.toLowerCase();
|
||||
let payload = messageArgs[i];
|
||||
|
|
Loading…
Reference in a new issue