mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Фикс панели управления
This commit is contained in:
parent
cff84cd640
commit
0eda37fa57
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue