aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-04 18:25:20 -0500
committerRapptz <[email protected]>2016-01-04 18:25:20 -0500
commit948f565b430d80f782d0b7c264cc0b27aa1ec0b2 (patch)
treecb5fc832e532435bbf2f450ef06550a785b0968c
parentChange permissions to remove the can_ prefix. (diff)
downloaddiscord.py-948f565b430d80f782d0b7c264cc0b27aa1ec0b2.tar.xz
discord.py-948f565b430d80f782d0b7c264cc0b27aa1ec0b2.zip
Use super() in classes that could be subclassed.
-rw-r--r--discord/client.py1
-rw-r--r--discord/object.py1
-rw-r--r--discord/user.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index bbad5ee4..f43fe1c2 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -105,6 +105,7 @@ class Client:
"""
def __init__(self, *, loop=None, **options):
+ super().__init__(loop, **options)
self.ws = None
self.token = None
self.gateway = None
diff --git a/discord/object.py b/discord/object.py
index ebf28f0f..e96cdbf8 100644
--- a/discord/object.py
+++ b/discord/object.py
@@ -44,4 +44,5 @@ class Object:
"""
def __init__(self, id):
+ super().__init__(id)
self.id = id
diff --git a/discord/user.py b/discord/user.py
index 85e43ba4..9403b308 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -56,6 +56,7 @@ class User:
__slots__ = ['name', 'id', 'discriminator', 'avatar']
def __init__(self, **kwargs):
+ super().__init__(**kwargs)
self.name = kwargs.get('username')
self.id = kwargs.get('id')
self.discriminator = kwargs.get('discriminator')