question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Display nickname as plain text in infraction mod logs instead of user id

See original GitHub issue

The Discord client will not be able to resolve the name of a mentioned user if the user is not in the cache so it ends up just displaying the ID. Furthermore, the user ID can be copied by right clicking a mention. Therefore, the text in parenthesis should be the user’s nickname as plain text instead of their ID.

This will need to account for working with the proxy user object which only has an ID - no name or nickname. In such case, don’t display anything in addition to the mention; I don’t think it’s worth doing fetch_user() or whatever.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lemonsauruscommented, Apr 29, 2020

hm. well yeah, it’s less relevant for mod log items. if possible, I suppose we could do lookups only for infr search?

0reactions
lemonsauruscommented, Jul 21, 2020

What the you’re saying seems reasonable to me. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

wrong display name automatically associated with my account ...
Just bought a new Dell Latitude 10 tablet PC and either created or used my existing Microsoft Account during setting up the tablet....
Read more >
Invariant Violation: Text strings must be rendered within a ...
I got this from just returning text inside <p></p> , as I wanted to create components that worked with regular React and React...
Read more >
20.8. Error Reporting and Logging - PostgreSQL
When logging to syslog is enabled, this parameter determines the program name used to identify PostgreSQL messages in syslog logs. The default is...
Read more >
A lingering farewell to the username - Slack API
Slack is phasing out the @username artifact in favor of the more expressive and flexible concept of display names.
Read more >
Understanding Moderation Messages - Roblox Support
Warning - A user can get back into their account right away if ... Roblox has found your name to be in violation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found