added handling for new usernames
This commit is contained in:
parent
bb49e42391
commit
ce0dcdb2c9
1 changed files with 6 additions and 3 deletions
|
@ -482,8 +482,11 @@ class Info(commands.Cog):
|
||||||
)
|
)
|
||||||
data.set_footer(text=_("Member #{} | User ID: {}").format(member_number, member.id))
|
data.set_footer(text=_("Member #{} | User ID: {}").format(member_number, member.id))
|
||||||
|
|
||||||
name = str(member)
|
if member.discriminator == "0":
|
||||||
name = " ~ ".join((name, member.nick)) if member.nick else name
|
name = str(member.name)
|
||||||
|
else:
|
||||||
|
name = str(member)
|
||||||
|
name = " - ".join((name, member.nick)) if member.nick else name
|
||||||
name = filter_invites(name)
|
name = filter_invites(name)
|
||||||
|
|
||||||
avatar = member.avatar_url_as(format='png')
|
avatar = member.avatar_url_as(format='png')
|
||||||
|
|
Loading…
Reference in a new issue