Overwrites is no longer a tuple but a dict

This commit is contained in:
Jeremy Zhang 2019-10-08 00:18:11 -07:00
parent 2e954aaffb
commit b0c9e6c5ec

View File

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