aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-19 06:18:12 -0500
committerRapptz <[email protected]>2015-12-19 06:18:12 -0500
commitf1f0e169e425ac9c849561788281e27bd8bb0acd (patch)
tree0a6d6717303c57e0902fd5dea043f2f83ff4a5e4 /discord/state.py
parentAdd listener for on_ready event for easier background tasks. (diff)
downloaddiscord.py-f1f0e169e425ac9c849561788281e27bd8bb0acd.tar.xz
discord.py-f1f0e169e425ac9c849561788281e27bd8bb0acd.zip
Add __slots__ where appropriate to data classes.
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py
index a4ba1526..07c71039 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -81,7 +81,6 @@ class ConnectionState:
self.messages.append(message)
def parse_message_delete(self, data):
- channel = self.get_channel(data.get('channel_id'))
message_id = data.get('id')
found = self._get_message(message_id)
if found is not None: