diff --git a/cogs/text_service_cog.py b/cogs/text_service_cog.py index 197e9526..5adea81d 100644 --- a/cogs/text_service_cog.py +++ b/cogs/text_service_cog.py @@ -660,6 +660,7 @@ async def on_message(self, message): # Moderations service is done here. if ( hasattr(message, "guild") + and message.guild and message.guild.id in Moderation.moderation_queues and Moderation.moderation_queues[message.guild.id] is not None ):