From b0c9e6c5ec97fd31929425842bf97e66d1fbb9de Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 8 Oct 2019 00:18:11 -0700 Subject: [PATCH] Overwrites is no longer a tuple but a dict --- discordbot/titanembeds/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/titanembeds/utils.py b/discordbot/titanembeds/utils.py index 61a3e80..d104838 100644 --- a/discordbot/titanembeds/utils.py +++ b/discordbot/titanembeds/utils.py @@ -195,7 +195,7 @@ def get_channels_list(guildchannels): if isinstance(channel, discord.channel.TextChannel) or isinstance(channel, discord.channel.CategoryChannel): overwrites = [] isTextChannel = isinstance(channel, discord.channel.TextChannel) - for target, overwrite in channel.overwrites: + for target, overwrite in channel.overwrites.items(): if not target: continue if isinstance(target, discord.Role):