Wait 0.5 seconds before processing some modlog stuff
This commit is contained in:
parent
7a2b407a9d
commit
2726e02d19
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue