mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Mod] Show name and discrim in mod-log
This commit is contained in:
parent
72bc7182b0
commit
a0aa69e083
@ -1294,10 +1294,10 @@ class Mod:
|
|||||||
"modified" : None,
|
"modified" : None,
|
||||||
"action" : action,
|
"action" : action,
|
||||||
"channel" : channel.id if channel else None,
|
"channel" : channel.id if channel else None,
|
||||||
"user" : user.name,
|
"user" : str(user),
|
||||||
"user_id" : user.id,
|
"user_id" : user.id,
|
||||||
"reason" : reason,
|
"reason" : reason,
|
||||||
"moderator" : mod.name if mod is not None else None,
|
"moderator" : str(mod) if mod is not None else None,
|
||||||
"moderator_id" : mod.id if mod is not None else None,
|
"moderator_id" : mod.id if mod is not None else None,
|
||||||
"amended_by" : None,
|
"amended_by" : None,
|
||||||
"amended_id" : None,
|
"amended_id" : None,
|
||||||
@ -1332,12 +1332,12 @@ class Mod:
|
|||||||
if case["moderator_id"] is not None:
|
if case["moderator_id"] is not None:
|
||||||
if case["moderator_id"] != mod.id:
|
if case["moderator_id"] != mod.id:
|
||||||
if self.is_admin_or_superior(mod):
|
if self.is_admin_or_superior(mod):
|
||||||
case["amended_by"] = mod.name
|
case["amended_by"] = str(mod)
|
||||||
case["amended_id"] = mod.id
|
case["amended_id"] = mod.id
|
||||||
else:
|
else:
|
||||||
raise UnauthorizedCaseEdit()
|
raise UnauthorizedCaseEdit()
|
||||||
else:
|
else:
|
||||||
case["moderator"] = mod.name
|
case["moderator"] = str(mod)
|
||||||
case["moderator_id"] = mod.id
|
case["moderator_id"] = mod.id
|
||||||
|
|
||||||
if case["reason"]: # Existing reason
|
if case["reason"]: # Existing reason
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user