Member.mention now uses nickname hint if needed.

This commit is contained in:
Rapptz 2016-04-29 19:29:48 -04:00
parent 196e9463f5
commit 3758c0aa83

View File

@ -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__