From 5ee64d0f2f8fb76f4ef60101edaf556590d6e01e Mon Sep 17 00:00:00 2001 From: Navy Date: Sun, 24 May 2020 01:10:29 +0300 Subject: [PATCH] setting caller and response to resetting a setting --- 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 40e3bcb..0b96bc3 100644 --- a/structure/client/components/commands/utility/Settings.js +++ b/structure/client/components/commands/utility/Settings.js @@ -73,7 +73,7 @@ class SettingsCommand extends Command { } } - setting._caller = target; + message._settingCaller = target; if(setting.resolve === 'GUILD' && !this._checkAdministrator(message)) return undefined; //does not have admin const parameters = params.splice(1); @@ -83,7 +83,8 @@ class SettingsCommand extends Command { } if(parameters.join(' ').toLowerCase() === 'reset') { - return await setting._handleReset(message); + const { msg } = await setting._handleReset(message); + return message.respond(msg, { emoji: 'success' }); } const response = await setting.handle(message, parameters);