mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[Mod] Fixed on_message check
Terrible mistake
This commit is contained in:
@@ -952,7 +952,7 @@ class Mod:
|
|||||||
|
|
||||||
async def on_message(self, message):
|
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):
|
or not isinstance(message.author, discord.Member):
|
||||||
return
|
return
|
||||||
elif self.is_mod_or_superior(message):
|
elif self.is_mod_or_superior(message):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user