From 7b13ef36880486917057f6eb3c8b94cd5e76ef6b Mon Sep 17 00:00:00 2001 From: Navy Date: Thu, 17 Sep 2020 20:42:07 +0300 Subject: [PATCH] ignore undefined return value from setting handler --- structure/client/components/commands/administration/Settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/client/components/commands/administration/Settings.js b/structure/client/components/commands/administration/Settings.js index 31b95ec..40dc515 100644 --- a/structure/client/components/commands/administration/Settings.js +++ b/structure/client/components/commands/administration/Settings.js @@ -125,7 +125,7 @@ class SettingsCommand extends Command { } const response = await setting.handle(message, parameters); - if(response.ignore) return undefined; + if(!response || response.ignore) return undefined; message.respond(response.msg, { emoji: response.error ? 'failure' : 'success',