From 2774cfd3e99ba0847e5fbccb6db63a2a77173289 Mon Sep 17 00:00:00 2001 From: iDutchy Date: Fri, 18 Sep 2020 01:04:04 +0000 Subject: [PATCH] welp, wasnt aware __hex__ got removed in py3 --- discord/colour.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/colour.py b/discord/colour.py index a47b5f7c..c285b8dd 100644 --- a/discord/colour.py +++ b/discord/colour.py @@ -85,8 +85,8 @@ class Colour: def __int__(self): return int(str(self.value), 16) - def __hex__(self): - return hex(self.value) + def __index__(self): + return self.value @property def r(self):