|
|
|
@ -550,13 +550,13 @@ class Moderation(Cog):
|
|
|
|
|
|
|
|
|
|
# Logging Nickname Updates
|
|
|
|
|
if before.nick != after.nick:
|
|
|
|
|
embed = Embed(description=f"{after.mention}'s **Nickname Changed**",
|
|
|
|
|
embed = Embed(description=f"**{after.mention}'s Nickname Changed**",
|
|
|
|
|
colour=enso_embedmod_colours,
|
|
|
|
|
timestamp=datetime.datetime.utcnow())
|
|
|
|
|
embed.set_author(name=after, icon_url=after.avatar_url)
|
|
|
|
|
embed.add_field(name="Nickname Before",
|
|
|
|
|
embed.add_field(name="Before",
|
|
|
|
|
value=before.nick, inline=False)
|
|
|
|
|
embed.add_field(name="Nickname After",
|
|
|
|
|
embed.add_field(name="After",
|
|
|
|
|
value=after.nick, inline=False)
|
|
|
|
|
embed.set_footer(text=f"ID: {after.id}")
|
|
|
|
|
|
|
|
|
@ -567,7 +567,6 @@ class Moderation(Cog):
|
|
|
|
|
new_roles = [roles for roles in after.roles if roles not in before.roles]
|
|
|
|
|
old_roles = [roles for roles in before.roles if roles not in after.roles]
|
|
|
|
|
|
|
|
|
|
if len(new_roles) >= 1:
|
|
|
|
|
new_roles_string = ", ".join(f"`{r.name}`" for r in new_roles)
|
|
|
|
|
|
|
|
|
|
if len(new_roles) == 1:
|
|
|
|
@ -584,7 +583,6 @@ class Moderation(Cog):
|
|
|
|
|
|
|
|
|
|
await modlogs_channel.send(embed=embed)
|
|
|
|
|
|
|
|
|
|
if len(old_roles) >= 1:
|
|
|
|
|
old_roles_string = ", ".join(r.name for r in old_roles)
|
|
|
|
|
|
|
|
|
|
if len(old_roles) == 1:
|
|
|
|
|