diff options
| author | Rasmus Karlsson <[email protected]> | 2015-10-14 17:41:21 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-15 01:37:52 -0400 |
| commit | 75670fa0a2a4b2db7430fb5f440d3b847bfcef28 (patch) | |
| tree | a2ce4bd89f4e3c013e2378705597869ca94f09bd | |
| parent | Add Client.change_status. (diff) | |
| download | discord.py-75670fa0a2a4b2db7430fb5f440d3b847bfcef28.tar.xz discord.py-75670fa0a2a4b2db7430fb5f440d3b847bfcef28.zip | |
Fixed get_default_role in Server attempting to access the wrong roles.
| -rw-r--r-- | discord/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/server.py b/discord/server.py index d693fd8c..aa855bba 100644 --- a/discord/server.py +++ b/discord/server.py @@ -167,6 +167,6 @@ class Server(object): def get_default_role(self): """Gets the @everyone role that all members have by default.""" - for role in roles: + for role in self.roles: if role.name == '@everyone': return role |