aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/user.py')
-rw-r--r--discord/user.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/discord/user.py b/discord/user.py
index f65b8d26..b6f59c51 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -74,7 +74,7 @@ class Profile(namedtuple('Profile', 'flags user mutual_guilds connected_accounts
_BaseUser = discord.abc.User
class BaseUser(_BaseUser):
- __slots__ = ('name', 'id', 'discriminator', 'avatar', 'bot', '_state')
+ __slots__ = ('name', 'id', 'discriminator', 'avatar', 'bot', 'system', '_state')
def __init__(self, *, state, data):
self._state = state
@@ -98,6 +98,7 @@ class BaseUser(_BaseUser):
self.discriminator = data['discriminator']
self.avatar = data['avatar']
self.bot = data.get('bot', False)
+ self.system = data.get('system', False)
@classmethod
def _copy(cls, user):
@@ -290,6 +291,8 @@ class ClientUser(BaseUser):
The avatar hash the user has. Could be None.
bot: :class:`bool`
Specifies if the user is a bot account.
+ system: :class:`bool`
+ Specifies if the user is a system user (i.e. represents Discord officially).
verified: :class:`bool`
Specifies if the user is a verified account.
email: Optional[:class:`str`]
@@ -658,6 +661,8 @@ class User(BaseUser, discord.abc.Messageable):
The avatar hash the user has. Could be None.
bot: :class:`bool`
Specifies if the user is a bot account.
+ system: :class:`bool`
+ Specifies if the user is a system user (i.e. represents Discord officially).
"""
__slots__ = BaseUser.__slots__ + ('__weakref__',)