diff --git a/structures/Command.js b/structures/Command.js index 24fcc49c..bfc29c22 100644 --- a/structures/Command.js +++ b/structures/Command.js @@ -2,10 +2,10 @@ const { Command } = require('discord.js-commando'); module.exports = class XiaoCommand extends Command { constructor(client, info) { + if (!info.argsPromptLimit) info.argsPromptLimit = 1; super(client, info); this.argsSingleQuotes = info.argsSingleQuotes || false; - this.argsPromptLimit = info.argsPromptLimit || 1; this.throttling = info.unknown ? null : info.throttling || { usages: 1, duration: 2 }; this.uses = 0; this.credit = info.credit || [];