Фикс панели управления

This commit is contained in:
JonnyBro 2022-01-14 00:22:16 +05:00
parent cff84cd640
commit 0eda37fa57

View file

@ -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;