mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 18:32:32 -05:00
@@ -837,7 +837,7 @@ class Mod:
|
||||
tmp["reason"] = "Type [p]reason {} <reason> to add it".format(case_n)
|
||||
if case["moderator"] is None:
|
||||
tmp["moderator"] = "Unknown"
|
||||
tmp["moderator_id"] = "Nobody has claimed responsability yet"
|
||||
tmp["moderator_id"] = "Nobody has claimed responsibility yet"
|
||||
|
||||
case_msg = ("**Case #{case}** | {action}\n"
|
||||
"**User:** {user} ({user_id})\n"
|
||||
@@ -951,7 +951,8 @@ class Mod:
|
||||
return False
|
||||
|
||||
async def on_message(self, message):
|
||||
if message.channel.is_private or self.bot.user == message.author:
|
||||
if message.channel.is_private or self.bot.user == message.author \
|
||||
or isinstance(message.author, discord.User):
|
||||
return
|
||||
elif self.is_mod_or_superior(message):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user