#How do I get all the categories in a guild?
1 messages · Page 1 of 1 (latest)
you will need to fetch all the channels, and then sort the categories out from said channels.
how do I do that?
I saw something like this:
filter(lambda c: c.type is hikari.ChannelType.GUILD_CATEGORY, bot.cache.get_guild_channels_view_for_guild(...).values())
But it doesn't return anything
your cache might be empty
try just simply getting the channels from the server, and say listing out the names
so fetching the channels, then doing a for loop through them
cache is great, but im fairly certain its only if something has been saved to the bots memory basically
where should I look in the docs for this?