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):