From c5848dbe8b66295598b4e6cad1c5ec8f5cc3a5fb Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 13 Mar 2017 12:26:19 -0700 Subject: [PATCH] Fix Channel.delete_messages --- disco/types/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/types/channel.py b/disco/types/channel.py index ee986be..4c91d3c 100644 --- a/disco/types/channel.py +++ b/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: