Add note to member docs about Spotify limitation
This commit is contained in:
parent
9f1a96ea9b
commit
208b16ed1b
@ -192,6 +192,13 @@ class Member(discord.abc.Messageable, _BaseUser):
|
|||||||
If the member left and rejoined the guild, this will be the latest date. In certain cases, this can be ``None``.
|
If the member left and rejoined the guild, this will be the latest date. In certain cases, this can be ``None``.
|
||||||
activities: Tuple[Union[:class:`BaseActivity`, :class:`Spotify`]]
|
activities: Tuple[Union[:class:`BaseActivity`, :class:`Spotify`]]
|
||||||
The activities that the user is currently doing.
|
The activities that the user is currently doing.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Due to a Discord API limitation, a user's Spotify activity may not appear
|
||||||
|
if they are listening to a song with a title longer
|
||||||
|
than 128 characters. See :issue:`1738` for more information.
|
||||||
|
|
||||||
guild: :class:`Guild`
|
guild: :class:`Guild`
|
||||||
The guild that the member belongs to.
|
The guild that the member belongs to.
|
||||||
nick: Optional[:class:`str`]
|
nick: Optional[:class:`str`]
|
||||||
@ -433,6 +440,12 @@ class Member(discord.abc.Messageable, _BaseUser):
|
|||||||
"""Union[:class:`BaseActivity`, :class:`Spotify`]: 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.
|
activity the user is currently doing. Could be ``None`` if no activity is being done.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Due to a Discord API limitation, this may be ``None`` if
|
||||||
|
the user is listening to a song on Spotify with a title longer
|
||||||
|
than 128 characters. See :issue:`1738` for more information.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
A user may have multiple activities, these can be accessed under :attr:`activities`.
|
A user may have multiple activities, these can be accessed under :attr:`activities`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user