From bfd9e446d4d242dd8948057ed3e29faaa699267f Mon Sep 17 00:00:00 2001 From: wookie184 Date: Tue, 16 Apr 2024 15:31:50 +0100 Subject: Fix: dict.values() -> dict.items() --- bot/exts/moderation/watchchannels/_watchchannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/moderation/watchchannels/_watchchannel.py b/bot/exts/moderation/watchchannels/_watchchannel.py index 2a460e316..768d0afb3 100644 --- a/bot/exts/moderation/watchchannels/_watchchannel.py +++ b/bot/exts/moderation/watchchannels/_watchchannel.py @@ -185,7 +185,7 @@ class WatchChannel(metaclass=CogABCMeta): self.consumption_queue = self.message_queue.copy() self.message_queue.clear() - for user_id, channel_queues in self.consumption_queue.values(): + for user_id, channel_queues in self.consumption_queue.items(): for channel_queue in channel_queues.values(): while channel_queue: msg = channel_queue.popleft() -- cgit v1.2.3