I want my discord bot to return the channels it has access to in a certain guild, I was using:
for i in guild.categories:
channel_list = []
for j in i.channels:
channel_list.append(f"- {j.name}, {j.id}")
but that returns the all channels of the guild. How can I check to see if the bot has permissions to read the channel so I can only see the channels the bot has been allowed to see?