From 0eda37fa57679bab1089086c5f00bf2ef597ecb7 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Fri, 14 Jan 2022 00:22:16 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D0=B0=D0=BD?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=20=D1=83=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/routes/guild-manager.js | 3 +++ 1 file changed, 3 insertions(+) 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;