Remove the use of ! in the Member.mention property

This commit is contained in:
Alex Nørgaard 2022-04-06 06:05:37 +01:00 committed by GitHub
parent abeea73734
commit 0263774e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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