diff options
| author | numbermaniac <[email protected]> | 2021-04-15 12:02:49 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-14 22:02:49 -0400 |
| commit | 208b16ed1ba86f1f777c142d3d69ff371b4a22cc (patch) | |
| tree | 0c9ca83ec4554e8e0fe08ee2423663891119aca5 | |
| parent | Remove fetch_offline_members param for Client (diff) | |
| download | discord.py-208b16ed1ba86f1f777c142d3d69ff371b4a22cc.tar.xz discord.py-208b16ed1ba86f1f777c142d3d69ff371b4a22cc.zip | |
Add note to member docs about Spotify limitation
| -rw-r--r-- | discord/member.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/discord/member.py b/discord/member.py index 09ac846e..01cb299c 100644 --- a/discord/member.py +++ b/discord/member.py @@ -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``. 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`] @@ -435,6 +442,12 @@ class Member(discord.abc.Messageable, _BaseUser): .. 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`. """ if self.activities: |