This is better

This commit is contained in:
Daniel Odendahl Jr
2018-05-30 12:10:06 +00:00
parent ceaca8da75
commit 637355d7a0
+6 -3
View File
@@ -1,9 +1,12 @@
const { Command } = require('discord.js-commando'); const { Command } = require('discord.js-commando');
class XiaoCommand extends Command { class XiaoCommand extends Command {
constructor(client) { constructor(client, info) {
this.argsPromptLimit = 1; super(client, info);
this.argsSingleQuotes = false;
this.argsPromptLimit = info.argsPromptLimit || 1;
this.argsSingleQuotes = info.argsSingleQuotes || false;
this.throttling = info.throttling || { usages: 1, duration: 2 };
} }
} }