From 637355d7a0056486ea7fe52655dd2ae65cbf54d9 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 30 May 2018 12:10:06 +0000 Subject: [PATCH] This is better --- structures/Command.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 }; } }