From f50877c9b8d2e8a5e32866cb63f40af673acd40d Mon Sep 17 00:00:00 2001 From: numbermaniac <5206120+numbermaniac@users.noreply.github.com> Date: Thu, 15 Apr 2021 12:02:49 +1000 Subject: [PATCH] Add note to member docs about Spotify limitation --- discord/member.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/discord/member.py b/discord/member.py index d0e969bd4..0ffaf75d6 100644 --- a/discord/member.py +++ b/discord/member.py @@ -188,6 +188,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``. activities: Tuple[Union[:class:`BaseActivity`, :class:`Spotify`]] 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` The guild that the member belongs to. nick: Optional[:class:`str`] @@ -440,6 +447,12 @@ class Member(discord.abc.Messageable, _BaseUser): """Union[:class:`BaseActivity`, :class:`Spotify`]: Returns the primary 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:: A user may have multiple activities, these can be accessed under :attr:`activities`.