diff --git a/discord/abc.py b/discord/abc.py index e721033a..0ac87d13 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -206,9 +206,6 @@ class GuildChannel: def __str__(self): return self.name - def __int__(self): - return self.id - @property def _sorting_bucket(self): raise NotImplementedError diff --git a/discord/emoji.py b/discord/emoji.py index b724e2f7..5feb1c90 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -112,9 +112,6 @@ class Emoji(_EmojiTag): return ''.format(self) return "<:{0.name}:{0.id}>".format(self) - def __int__(self): - return self.id - def __repr__(self): return ''.format(self) diff --git a/discord/guild.py b/discord/guild.py index af45c45e..becba235 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -207,9 +207,6 @@ class Guild(Hashable): def __str__(self): return self.name - def __int__(self): - return self.id - def __repr__(self): attrs = ( 'id', 'name', 'shard_id', 'chunked' diff --git a/discord/message.py b/discord/message.py index 12675975..9e61e6b5 100644 --- a/discord/message.py +++ b/discord/message.py @@ -84,9 +84,6 @@ class Attachment: """:class:`bool`: Whether this attachment contains a spoiler.""" return self.filename.startswith('SPOILER_') - def __int__(self): - return self.id - def __repr__(self): return ''.format(self) @@ -391,9 +388,6 @@ class Message: def __str__(self): return self.content - def __int__(self): - return self.id - def __repr__(self): return ''.format(self) diff --git a/discord/role.py b/discord/role.py index 09a42599..882f346e 100644 --- a/discord/role.py +++ b/discord/role.py @@ -99,9 +99,6 @@ class Role(Hashable): def __str__(self): return self.name - def __int__(self): - return self.id - def __repr__(self): return ''.format(self) diff --git a/discord/user.py b/discord/user.py index 8726abaf..135eb7e9 100644 --- a/discord/user.py +++ b/discord/user.py @@ -92,9 +92,6 @@ class BaseUser(_BaseUser): def __str__(self): return '{0.name}#{0.discriminator}'.format(self) - def __int__(self): - return self.id - def __eq__(self, other): return isinstance(other, _BaseUser) and other.id == self.id