From ab16b27ccaa228e4f97e4dcf5e3211083c0ca136 Mon Sep 17 00:00:00 2001 From: David Sevilla Date: Mon, 25 Jun 2018 10:54:40 -0400 Subject: [PATCH] =?UTF-8?q?fix(discord:=20commands):=20conf:=20fix=20synta?= =?UTF-8?q?x=20error=20=C2=B0=5F=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Discord/Commands/Conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Discord/Commands/Conf.js b/lib/Discord/Commands/Conf.js index 809cd17..d58c751 100644 --- a/lib/Discord/Commands/Conf.js +++ b/lib/Discord/Commands/Conf.js @@ -76,7 +76,7 @@ class ConfCommand extends Command { const key = args.filter(e => !e.includes('-'))[1]; const global = (args.includes('--global') || args.includes('-g')) && args.length > 3; const conf = global ? serverConf : channelConf; - const validKeys = globsl ? ServerConfig : ChannelConfig).validKeys; + const validKeys = (global ? ServerConfig : ChannelConfig).validKeys; let value = global ? args.filter(e => !e.includes('-g')).slice(2).join(' ') : args.filter(2).join(' '); if (key !== 'prefix' && value.includes(', ')) value = value.split(', '); if (!Array.isArray(value) && (key === 'ignoredUsers' || key === 'ignoredBranches' || key === 'disabledEvents')) value = value ? [value] : [];