Skip to content

Commit f50877c

Browse files
numbermaniacRapptz
authored andcommitted
Add note to member docs about Spotify limitation
1 parent afca943 commit f50877c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

discord/member.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ class Member(discord.abc.Messageable, _BaseUser):
188188
If the member left and rejoined the guild, this will be the latest date. In certain cases, this can be ``None``.
189189
activities: Tuple[Union[:class:`BaseActivity`, :class:`Spotify`]]
190190
The activities that the user is currently doing.
191+
192+
.. note::
193+
194+
Due to a Discord API limitation, a user's Spotify activity may not appear
195+
if they are listening to a song with a title longer
196+
than 128 characters. See :issue:`1738` for more information.
197+
191198
guild: :class:`Guild`
192199
The guild that the member belongs to.
193200
nick: Optional[:class:`str`]
@@ -440,6 +447,12 @@ def activity(self):
440447
"""Union[:class:`BaseActivity`, :class:`Spotify`]: Returns the primary
441448
activity the user is currently doing. Could be ``None`` if no activity is being done.
442449
450+
.. note::
451+
452+
Due to a Discord API limitation, this may be ``None`` if
453+
the user is listening to a song on Spotify with a title longer
454+
than 128 characters. See :issue:`1738` for more information.
455+
443456
.. note::
444457
445458
A user may have multiple activities, these can be accessed under :attr:`activities`.

0 commit comments

Comments
 (0)