mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Member.mention now uses nickname hint if needed.
This commit is contained in:
@ -125,3 +125,11 @@ class Member(User):
|
||||
return Colour.default()
|
||||
|
||||
color = colour
|
||||
|
||||
@property
|
||||
def mention(self):
|
||||
if self.nick:
|
||||
return '<@!{}>'.format(self.id)
|
||||
return '<@{}>'.format(self.id)
|
||||
|
||||
mention.__doc__ = User.mention.__doc__
|
||||
|
Reference in New Issue
Block a user