diff --git a/jarvis/cogs/modlog/member.py b/jarvis/cogs/modlog/member.py index b1a5ea1..d43cd7d 100644 --- a/jarvis/cogs/modlog/member.py +++ b/jarvis/cogs/modlog/member.py @@ -112,6 +112,7 @@ class ModlogMemberCog(commands.Cog): await channel.send(embed=embed) async def process_mute(self, before, after) -> discord.Embed: + await asyncio.sleep(0.5) # Need to wait for audit log auditlog = await before.guild.audit_logs( limit=50, action=discord.AuditLogAction.member_role_update, @@ -137,6 +138,7 @@ class ModlogMemberCog(commands.Cog): ) async def process_unmute(self, before, after) -> discord.Embed: + await asyncio.sleep(0.5) # Need to wait for audit log auditlog = await before.guild.audit_logs( limit=50, action=discord.AuditLogAction.member_role_update, @@ -163,6 +165,7 @@ class ModlogMemberCog(commands.Cog): ) async def process_verify(self, before, after) -> discord.Embed: + await asyncio.sleep(0.5) # Need to wait for audit log auditlog = await before.guild.audit_logs( limit=50, action=discord.AuditLogAction.member_role_update, @@ -180,6 +183,7 @@ class ModlogMemberCog(commands.Cog): ) async def process_rolechange(self, before, after) -> discord.Embed: + await asyncio.sleep(0.5) # Need to wait for audit log auditlog = await before.guild.audit_logs( limit=50, action=discord.AuditLogAction.member_role_update,