Only update if it's enabled (not all keys)

pull/198/merge
bobloy 3 years ago
parent aba9840bcb
commit d191abf6bd

@ -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:

Loading…
Cancel
Save