Better nickname support

- Username field will not be overwritten with the nickname.
- Mentions work again!
- User chip will show nickname instead of username if present
- Authenticated embed users sidebar nickname support
This commit is contained in:
Jeremy Zhang
2017-08-10 02:05:05 +00:00
parent 98d13e9feb
commit 77bde8f258
6 changed files with 43 additions and 17 deletions

View File

@ -69,8 +69,6 @@ class DatabaseInterface(object):
def get_message_author(self, message):
author = message.author
if hasattr(author, 'nick') and author.nick:
author.name = author.nick
obj = {
"username": author.name,
"discriminator": author.discriminator,