📜  discord bot状态python代码示例

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

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