From f8fb75255372aab97f337d32bccc941af3ecfe78 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 17 Dec 2022 21:19:11 +0300 Subject: [PATCH] Fix channel_perm_tree --- minearchy_bot/cogs/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minearchy_bot/cogs/utils.py b/minearchy_bot/cogs/utils.py index ee1c506..a465d41 100644 --- a/minearchy_bot/cogs/utils.py +++ b/minearchy_bot/cogs/utils.py @@ -51,8 +51,8 @@ class Utils(Cog): string = [] for channel in ctx.guild.channels: - # Only root level categories. - if hasattr(channel, "category") or channel.category is not None: + # Only root level channels. + if getattr(channel, "category", False): continue if isinstance(channel, CategoryChannel):