Skip to content

Commit fd55715

Browse files
improve lgoic
1 parent 0a77bc0 commit fd55715

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

cogs/archive.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ async def autocomplete_get_channels(
9696
for channel in main_guild.channels
9797
if (
9898
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-
)
99+
and channel.category
100+
and "archive" not in channel.category.name.lower()
101+
and isinstance(interaction_user, discord.Member)
102+
and channel.permissions_for(interaction_user).read_messages
104103
)
105104
}
106105

0 commit comments

Comments
 (0)