Add __slots__ where appropriate to data classes.

This commit is contained in:
Rapptz
2015-12-19 06:18:12 -05:00
parent 4fa5b50d2b
commit f1f0e169e4
10 changed files with 33 additions and 12 deletions

View File

@ -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: