Browse Source

Don't use an enum when unnecessary in Member._client_status

pull/2054/head
Rapptz 6 years ago
parent
commit
c9fd092476
  1. 2
      discord/member.py

2
discord/member.py

@ -158,7 +158,7 @@ class Member(discord.abc.Messageable, _BaseUser):
self.joined_at = utils.parse_time(data.get('joined_at'))
self._update_roles(data)
self._client_status = {
None: Status.offline
None: 'offline'
}
self.activities = tuple(map(create_activity, data.get('activities', [])))
self.nick = data.get('nick', None)

Loading…
Cancel
Save