From 8e6ab9aa353562a5dc6b672a17aafbaf86560bc8 Mon Sep 17 00:00:00 2001 From: Michael H Date: Wed, 11 Jul 2018 21:38:07 -0400 Subject: [PATCH] [V3 reports] Display user discrim (#1913) * [V3 reports] Display user discrim * Update reports.py minor change for clarity * format pass --- redbot/cogs/reports/reports.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/reports/reports.py b/redbot/cogs/reports/reports.py index 10cb168cc..f57dc6517 100644 --- a/redbot/cogs/reports/reports.py +++ b/redbot/cogs/reports/reports.py @@ -105,7 +105,7 @@ class Reports: *, mod: bool = False, permissions: Union[discord.Permissions, dict] = None, - prompt: str = "" + prompt: str = "", ): """ discovers which of shared guilds between the bot @@ -175,7 +175,10 @@ class Reports: if await self.bot.embed_requested(channel, author): em = discord.Embed(description=report) em.set_author( - name=_("Report from {0.display_name}").format(author), icon_url=author.avatar_url + name=_("Report from {author}{maybe_nick}").format( + author=author, maybe_nick=(f" ({author.nick})" if author.nick else "") + ), + icon_url=author.avatar_url, ) em.set_footer(text=_("Report #{}").format(ticket_number)) send_content = None