discord py get all channels in guild code example
Example 1: discord py get all channels in guild
guild.text_channels
Example 2: discord py server.channels
# Returns a list of all channels from all guilds( as channel IDs )
bot.get_all_channels()