ignore undefined return value from setting handler

This commit is contained in:
Erik 2020-09-17 20:42:07 +03:00
parent 08c652eb8e
commit 7b13ef3688

View File

@ -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',