diff options
| author | 2020-07-20 11:55:02 -0700 | |
|---|---|---|
| committer | 2020-07-21 10:30:31 -0700 | |
| commit | 090b42d0c46957091681bc8f4666523513ccdc28 (patch) | |
| tree | 1bcf7cfb7975450c79b4996117967ab67a7a34f5 | |
| parent | Add util function to format user names (diff) | |
Superstarify: use user mentions in mod logs
`format_user` isn't used in the apply mod log cause it already shows
both the old and new nicknames elsewhere.
| -rw-r--r-- | bot/cogs/moderation/superstarify.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/cogs/moderation/superstarify.py b/bot/cogs/moderation/superstarify.py index 867de815a..f22e7e741 100644 --- a/bot/cogs/moderation/superstarify.py +++ b/bot/cogs/moderation/superstarify.py @@ -12,6 +12,7 @@ from bot import constants from bot.bot import Bot from bot.converters import Expiry from bot.utils.checks import with_role_check +from bot.utils.messages import format_user from bot.utils.time import format_infraction from . import utils from .scheduler import InfractionScheduler @@ -181,8 +182,8 @@ class Superstarify(InfractionScheduler, Cog): title="Member achieved superstardom", thumbnail=member.avatar_url_as(static_format="png"), text=textwrap.dedent(f""" - Member: {member.mention} (`{member.id}`) - Actor: {ctx.message.author} + Member: {member.mention} + Actor: {ctx.message.author.mention} Expires: {expiry_str} Old nickname: `{old_nick}` New nickname: `{forced_nick}` @@ -221,7 +222,7 @@ class Superstarify(InfractionScheduler, Cog): ) return { - "Member": f"{user.mention}(`{user.id}`)", + "Member": format_user(user), "DM": "Sent" if notified else "**Failed**" } |