diff options
| author | 2019-10-25 15:20:02 -0700 | |
|---|---|---|
| committer | 2019-10-25 17:11:45 -0700 | |
| commit | 1acdf4c40e14bc15a842d84385bafd312088a03d (patch) | |
| tree | 5cab224c48864b7aa94b63ba82faf94057033610 | |
| parent | Superstarify: negate active infractions check in on_member_update (diff) | |
Superstarify: save the old nickname before editing it
| -rw-r--r-- | bot/cogs/moderation/superstarify.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/cogs/moderation/superstarify.py b/bot/cogs/moderation/superstarify.py index 95962b750..803ecee1c 100644 --- a/bot/cogs/moderation/superstarify.py +++ b/bot/cogs/moderation/superstarify.py @@ -133,6 +133,7 @@ class Superstarify(InfractionScheduler, Cog): reason = reason or f"old nick: {member.display_name}" infraction = await utils.post_infraction(ctx, member, "superstar", reason, duration) + old_nick = member.display_name forced_nick = self.get_nick(infraction["id"], member.id) expiry_str = format_infraction(infraction["expires_at"]) @@ -154,7 +155,7 @@ class Superstarify(InfractionScheduler, Cog): embed = Embed() embed.title = "Congratulations!" embed.description = ( - f"Your previous nickname, **{member.display_name}**, " + f"Your previous nickname, **{old_nick}**, " f"was so bad that we have decided to change it. " f"Your new nickname will be **{forced_nick}**.\n\n" f"You will be unable to change your nickname until \n**{expiry_str}**.\n\n" @@ -174,7 +175,7 @@ class Superstarify(InfractionScheduler, Cog): Actor: {ctx.message.author} Reason: {reason} Expires: {expiry_str} - Old nickname: `{member.display_name}` + Old nickname: `{old_nick}` New nickname: `{forced_nick}` """), footer=f"ID {infraction['id']}" |