We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a77bc0 commit fd55715Copy full SHA for fd55715
1 file changed
cogs/archive.py
@@ -96,11 +96,10 @@ async def autocomplete_get_channels(
96
for channel in main_guild.channels
97
if (
98
not isinstance(channel, discord.CategoryChannel)
99
- and (channel.category and "archive" not in channel.category.name.lower())
100
- and (
101
- isinstance(interaction_user, discord.Member)
102
- and channel.permissions_for(interaction_user).read_messages
103
- )
+ and channel.category
+ and "archive" not in channel.category.name.lower()
+ and isinstance(interaction_user, discord.Member)
+ and channel.permissions_for(interaction_user).read_messages
104
)
105
}
106
0 commit comments