diff --git a/structures/Command.js b/structures/Command.js index e28fc76f..25a07bb6 100644 --- a/structures/Command.js +++ b/structures/Command.js @@ -2,9 +2,9 @@ const { Command } = require('discord.js-commando'); class XiaoCommand extends Command { constructor(client, info) { + if (typeof info.argsPromptLimit === 'undefined') info.argsPromptLimit = 1; super(client, info); - this.argsPromptLimit = info.argsPromptLimit || 1; this.argsSingleQuotes = info.argsSingleQuotes || false; this.throttling = info.throttling || { usages: 1, duration: 2 }; }