aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-12-02 01:28:54 -0500
committerRapptz <[email protected]>2016-12-02 01:28:54 -0500
commitb7c90a5e3dd39e707dab50b474afa1554f939200 (patch)
tree1de2bc5877326875ae52e96428450d46b91c8945
parentMake FAQ use change_presence instead of change_status. (diff)
downloaddiscord.py-b7c90a5e3dd39e707dab50b474afa1554f939200.tar.xz
discord.py-b7c90a5e3dd39e707dab50b474afa1554f939200.zip
Fix role comparisons.
Fixes #409
-rw-r--r--discord/role.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/role.py b/discord/role.py
index 9e3d0f3c..c375c228 100644
--- a/discord/role.py
+++ b/discord/role.py
@@ -99,7 +99,7 @@ class Role(Hashable):
return True
if self.position == other.position:
- return self.id > other.id
+ return int(self.id) > int(other.id)
return False