From b62d3e9a2b2543cbf6eb39c661bd6d1493dbb901 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 19:36:38 +0100 Subject: [PATCH] modules/TACommandWipeChannel.py --- modules/TACommandWipeChannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/TACommandWipeChannel.py b/modules/TACommandWipeChannel.py index 02f66f4..1fcb24a 100644 --- a/modules/TACommandWipeChannel.py +++ b/modules/TACommandWipeChannel.py @@ -23,7 +23,7 @@ class TACommandWipeChannel(AbstractCommand): return # needs indirection. see iterators. - posts = [post for post in self.bot.api.get_posts_for_channel(data["channel_id"])] + posts = list(self.bot.api.get_posts_for_channel(data['channel_id'])) for post in posts: if post["is_pinned"]: continue -- 2.43.0