aboutsummaryrefslogtreecommitdiff
path: root/discord/colour.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/colour.py')
-rw-r--r--discord/colour.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/colour.py b/discord/colour.py
index 67137cb4..ae6bab87 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -24,7 +24,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
-class Colour(object):
+class Colour:
"""Represents a Discord role colour. This class is similar
to an (red, green, blue) tuple.
@@ -50,6 +50,8 @@ class Colour(object):
The raw integer colour value.
"""
+ __slots__ = [ 'value' ]
+
def __init__(self, value):
self.value = value