Fixed bug when updating relay settings
This commit is contained in:
parent
94c3244016
commit
ae602d08de
@ -149,7 +149,7 @@ module.exports = {
|
||||
const outWaterMessage = inWaterMessage ? inWaterMessage : guildInfo.waterMessage;
|
||||
const outFruitMessage = inFruitMessage ? inFruitMessage : guildInfo.fruitMessage;
|
||||
const outReminderChannelId = inReminderChannel ? inReminderChannel.id : guildInfo.reminderChannelId;
|
||||
const outEnabled = inEnabled === undefined ? guildInfo.notificationsEnabled : inEnabled;
|
||||
const outEnabled = inEnabled ? inEnabled : guildInfo.notificationsEnabled;
|
||||
|
||||
// Update the relay configuration
|
||||
guildInfo.setReminders(outWaterMessage, outFruitMessage, outReminderChannelId, outWatchChannelId, outEnabled);
|
||||
|
Loading…
Reference in New Issue
Block a user