Browse Source

Fix Channel.delete_messages

pull/21/head
Andrei 8 years ago
parent
commit
c5848dbe8b
  1. 2
      disco/types/channel.py

2
disco/types/channel.py

@ -305,7 +305,7 @@ class Channel(SlottedModel, Permissible):
return
if self.can(self.client.state.me, Permissions.MANAGE_MESSAGES) and len(messages) > 2:
for chunk in chunks(messages, 100):
for chunk in chunks(message_ids, 100):
self.client.api.channels_messages_delete_bulk(self.id, chunk)
else:
for msg in messages:

Loading…
Cancel
Save