get all channels in guild discord.py code example Example 1: get guild from a channel discord py channel.guild Example 2: discord py get all channels in guild guild.text_channels