From 712167525173e673f348f129c0fa521859b4cb9e Mon Sep 17 00:00:00 2001 From: Navy Date: Wed, 10 Jun 2020 17:48:45 +0300 Subject: [PATCH] some bullshit --- structure/client/components/commands/utility/Settings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/structure/client/components/commands/utility/Settings.js b/structure/client/components/commands/utility/Settings.js index 05875b5..8360136 100644 --- a/structure/client/components/commands/utility/Settings.js +++ b/structure/client/components/commands/utility/Settings.js @@ -93,7 +93,7 @@ class SettingsCommand extends Command { return undefined; } - if(parameters.join(' ').toLowerCase() === 'reset') { + if(['reset', 'clear'].includes(parameters.join(' ').toLowerCase())) { const { msg } = await setting._handleReset(message); return message.respond(msg, { emoji: 'success' }); } @@ -162,7 +162,8 @@ class SettingsCommand extends Command { } let fields = setting.fields(message.guild); - if(fields instanceof Promise) fields = await fields; + if (fields instanceof Promise) fields = await fields; + //console.log(fields) const embed = { author: {