Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3 reports] Display user discrim #1913

Merged
merged 4 commits into from
Jul 12, 2018
Merged

[V3 reports] Display user discrim #1913

merged 4 commits into from
Jul 12, 2018

Conversation

mikeshardmind
Copy link
Contributor

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

This ensures less chance of accidentally mixing up users, still showing the nickname as well if there is one

@Kowlin Kowlin added the V3 label Jul 8, 2018
@@ -175,7 +175,10 @@ def pred(m):
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(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of a questionable formatting job here?

If I'm reading this code correctly this would make a username appear as the following:
KowlinNickname

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wiith how maybe_nick is passed to that, you'll either just get:

Username#discrimantor if no nickname, or Username#discriminator (Nickname) if they have one (making it more clear on nicknames, since those are more likely to change)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, this relied on me thinking that the author object would only return the username and not the full user-discrim.

@Kowlin Kowlin merged commit 8e6ab9a into Cog-Creators:V3/develop Jul 12, 2018
@mikeshardmind mikeshardmind deleted the patch-7 branch December 26, 2019 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants