Member.mention now uses nickname hint if needed.
This commit is contained in:
parent
196e9463f5
commit
3758c0aa83
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user