diff --git a/dashboard/routes/guild-manager.js b/dashboard/routes/guild-manager.js index 2435d406..daad2ea9 100644 --- a/dashboard/routes/guild-manager.js +++ b/dashboard/routes/guild-manager.js @@ -125,6 +125,9 @@ router.post("/:serverID", CheckAuth, async(req, res) => { if (data.modlogs === req.translate("common:NO_CHANNEL")) guildData.plugins.modlogs = false; else guildData.plugins.modlogs = guild.channels.cache.find((ch) => "#" + ch.name === data.modlogs).id; + if (data.reports === req.translate("common:NO_CHANNEL")) guildData.plugins.reports = false; + else guildData.plugins.reports = guild.channels.cache.find((ch) => "#" + ch.name === data.reports).id; + if (data.birthdays === req.translate("common:NO_CHANNEL")) guildData.plugins.birthdays = false; else guildData.plugins.birthdays = guild.channels.cache.find((ch) => "#" + ch.name === data.birthdays).id;