Expose _ActivityTag as BaseActivity to easily refer to.

This commit is contained in:
Rapptz
2020-01-14 20:54:31 -05:00
parent a841efa087
commit 42a084028c
7 changed files with 39 additions and 21 deletions

View File

@ -150,7 +150,7 @@ class Member(discord.abc.Messageable, _BaseUser):
joined_at: Optional[:class:`datetime.datetime`]
A datetime object that specifies the date and time in UTC that the member joined the guild for
the first time. In certain cases, this can be ``None``.
activities: Tuple[Union[:class:`Game`, :class:`Streaming`, :class:`Spotify`, :class:`Activity`]]
activities: Tuple[Union[:class:`BaseActivity`, :class:`Spotify`]]
The activities that the user is currently doing.
guild: :class:`Guild`
The guild that the member belongs to.
@ -381,7 +381,7 @@ class Member(discord.abc.Messageable, _BaseUser):
@property
def activity(self):
"""Union[:class:`Game`, :class:`Streaming`, :class:`Spotify`, :class:`Activity`]: Returns the primary
"""Union[:class:`BaseActivity`, :class:`Spotify`]: Returns the primary
activity the user is currently doing. Could be None if no activity is being done.
.. note::