1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 00:47:44 +00:00

Fix channel_perm_tree

This commit is contained in:
RGBCube 2022-12-17 21:19:11 +03:00
parent 300de3f3b2
commit f8fb752553

View file

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