diff options
| author | Rapptz <[email protected]> | 2017-01-03 20:15:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 20:17:58 -0500 |
| commit | c863d93f69090e0f494ffa1b6846cddc3668f779 (patch) | |
| tree | 3c0371a50be47cc222b28fdcc8e261dffc0225e9 /discord/guild.py | |
| parent | [commands] Don't use removed is_private attribute in core decorators. (diff) | |
| download | discord.py-c863d93f69090e0f494ffa1b6846cddc3668f779.tar.xz discord.py-c863d93f69090e0f494ffa1b6846cddc3668f779.zip | |
Fix bug that made member roles go missing.
Diffstat (limited to 'discord/guild.py')
| -rw-r--r-- | discord/guild.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/discord/guild.py b/discord/guild.py index adb3e22e..0f37a214 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -226,13 +226,6 @@ class Guild(Hashable): self.splash = guild.get('splash') for mdata in guild.get('members', []): - roles = [self.default_role] - for role_id in mdata['roles']: - role = utils.find(lambda r: r.id == role_id, self.roles) - if role is not None: - roles.append(role) - - mdata['roles'] = roles member = Member(data=mdata, guild=self, state=self._state) self._add_member(member) |