Fixed an issue with the moderation and logging

This commit is contained in:
ION606
2022-07-24 15:25:51 +03:00
parent fb87d33bd9
commit 6d8aa991b6
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -23,6 +23,7 @@ function log(bot, message, command, mentioned, reason, severity) {
if (!doc) { return message.channel.send("Server logs not set up yet!"); }
const channel = message.guild.channels.cache.get(doc.logchannel);
if (!channel) { return console.log("There is no specified log channel!"); }
//Check severity threshold
if (SEVCODES[doc.severity] < severity) { return; }