mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Disallow none target
This commit is contained in:
parent
65e29b9deb
commit
0cb1f0646e
@ -194,6 +194,8 @@ def get_channels_list(guildchannels):
|
||||
overwrites = []
|
||||
isTextChannel = isinstance(channel, discord.channel.TextChannel)
|
||||
for target, overwrite in channel.overwrites:
|
||||
if not target:
|
||||
continue
|
||||
if isinstance(target, discord.Role):
|
||||
type = "role"
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user