📜  discord py bot status - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:03.115000             🧑  作者: Mango

代码示例3
# 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)