forked from Galactic/galactic-bot
ignore undefined return value from setting handler
This commit is contained in:
parent
08c652eb8e
commit
7b13ef3688
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user