get message.guild.id in an event discord.py code example Example: discord.py get guild member list guild = client.get_guild(ID) memberList = guild.members