Skip to content

Commit

Permalink
Sort member roles in GUILD_CREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Sep 17, 2017
1 parent bf269db commit feba1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def _from_data(self, guild):
if role is not None:
roles.append(role)

mdata['roles'] = roles
mdata['roles'] = sorted(roles)
member = Member(**mdata)
member.server = self
self._add_member(member)
Expand Down

0 comments on commit feba1d0

Please sign in to comment.