how to get the guild in discord.py code example
Example 1: discord.py get guild member list
guild = client.get_guild(ID)
memberList = guild.members
Example 2: discord py server.channels
# Returns a list of all channels from all guilds( as channel IDs )
bot.get_all_channels()