mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
Fix channel_perm_tree
This commit is contained in:
parent
300de3f3b2
commit
f8fb752553
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ class Utils(Cog):
|
||||||
string = []
|
string = []
|
||||||
|
|
||||||
for channel in ctx.guild.channels:
|
for channel in ctx.guild.channels:
|
||||||
# Only root level categories.
|
# Only root level channels.
|
||||||
if hasattr(channel, "category") or channel.category is not None:
|
if getattr(channel, "category", False):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if isinstance(channel, CategoryChannel):
|
if isinstance(channel, CategoryChannel):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue