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