From d191abf6bdcb313319e6dcb72019d5dfa9b305e9 Mon Sep 17 00:00:00 2001 From: bobloy Date: Fri, 3 Sep 2021 15:37:08 -0400 Subject: [PATCH] Only update if it's enabled (not all keys) --- infochannel/infochannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index f16d47f..e8ea91b 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -504,7 +504,7 @@ class InfoChannel(Cog): guild_data = await self.config.guild(guild).all() to_update = ( - kwargs.keys() & guild_data["enabled_channels"].keys() + kwargs.keys() & [key for key, value in guild_data["enabled_channels"].items() if value] ) # Value in kwargs doesn't matter if to_update or extra_roles: