|
|
@ -100,7 +100,7 @@ class BaseUser(_UserTag): |
|
|
|
|
|
|
|
def __str__(self) -> str: |
|
|
|
if self.discriminator == '0': |
|
|
|
return f'@{self.name}' |
|
|
|
return self.name |
|
|
|
return f'{self.name}#{self.discriminator}' |
|
|
|
|
|
|
|
def __eq__(self, other: object) -> bool: |
|
|
@ -319,7 +319,7 @@ class ClientUser(BaseUser): |
|
|
|
|
|
|
|
.. describe:: str(x) |
|
|
|
|
|
|
|
Returns the user's handle (e.g. ``@user`` or ``user#discriminator``). |
|
|
|
Returns the user's handle (e.g. ``name`` or ``name#discriminator``). |
|
|
|
|
|
|
|
Attributes |
|
|
|
----------- |
|
|
@ -459,7 +459,7 @@ class User(BaseUser, discord.abc.Messageable): |
|
|
|
|
|
|
|
.. describe:: str(x) |
|
|
|
|
|
|
|
Returns the user's handle (e.g. ``@user`` or ``user#discriminator``). |
|
|
|
Returns the user's handle (e.g. ``name`` or ``name#discriminator``). |
|
|
|
|
|
|
|
Attributes |
|
|
|
----------- |
|
|
|