mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 02:16:09 -05:00
[V3 ModLog] Fix [p]reason when the modlog case has no moderator (#1604)
This commit is contained in:
@@ -134,7 +134,7 @@ class ModLog:
|
||||
audit_case = None
|
||||
async for entry in guild.audit_logs(action=audit_type):
|
||||
if entry.target.id == case_before.user.id and \
|
||||
entry.user.id == case_before.moderator.id:
|
||||
entry.action == audit_type:
|
||||
audit_case = entry
|
||||
break
|
||||
if audit_case:
|
||||
|
||||
Reference in New Issue
Block a user