mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Fixed an issue with the moderation and logging
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user