mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Overwrites is no longer a tuple but a dict
This commit is contained in:
parent
2e954aaffb
commit
b0c9e6c5ec
@ -195,7 +195,7 @@ def get_channels_list(guildchannels):
|
|||||||
if isinstance(channel, discord.channel.TextChannel) or isinstance(channel, discord.channel.CategoryChannel):
|
if isinstance(channel, discord.channel.TextChannel) or isinstance(channel, discord.channel.CategoryChannel):
|
||||||
overwrites = []
|
overwrites = []
|
||||||
isTextChannel = isinstance(channel, discord.channel.TextChannel)
|
isTextChannel = isinstance(channel, discord.channel.TextChannel)
|
||||||
for target, overwrite in channel.overwrites:
|
for target, overwrite in channel.overwrites.items():
|
||||||
if not target:
|
if not target:
|
||||||
continue
|
continue
|
||||||
if isinstance(target, discord.Role):
|
if isinstance(target, discord.Role):
|
||||||
|
Loading…
Reference in New Issue
Block a user