some bullshit

This commit is contained in:
Erik 2020-06-10 17:48:45 +03:00
parent 9f79b62e72
commit 7121675251

View File

@ -93,7 +93,7 @@ class SettingsCommand extends Command {
return undefined; return undefined;
} }
if(parameters.join(' ').toLowerCase() === 'reset') { if(['reset', 'clear'].includes(parameters.join(' ').toLowerCase())) {
const { msg } = await setting._handleReset(message); const { msg } = await setting._handleReset(message);
return message.respond(msg, { emoji: 'success' }); return message.respond(msg, { emoji: 'success' });
} }
@ -162,7 +162,8 @@ class SettingsCommand extends Command {
} }
let fields = setting.fields(message.guild); 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 = { const embed = {
author: { author: {