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