mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-21 10:26:47 +00:00
Remove the use of ! in the Member.mention property
This commit is contained in:
parent
abeea73734
commit
0263774e13
@ -551,8 +551,6 @@ class Member(discord.abc.Messageable, _UserTag):
|
|||||||
@property
|
@property
|
||||||
def mention(self) -> str:
|
def mention(self) -> str:
|
||||||
""":class:`str`: Returns a string that allows you to mention the member."""
|
""":class:`str`: Returns a string that allows you to mention the member."""
|
||||||
if self.nick:
|
|
||||||
return f'<@!{self._user.id}>'
|
|
||||||
return f'<@{self._user.id}>'
|
return f'<@{self._user.id}>'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user