change_presence discord.py code example
Example 1: discord py bot status
# Status to Online (The green one)
await client.change_presence(status=discord.Status.online)
# Status to Idle (The orange one)
await client.change_presence(status=discord.Status.idle)
# Status to Do not disturb (The red one)
await client.change_presence(status=discord.Status.dnd)
Example 2: discord.py fetch channel
await client.fetch_channel(channelId)