📜  discord.py 读取自定义状态 - Python 代码示例

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

代码示例1
@bot.command() #use @client.command here if you are using client to alternate commands.Bot
async def customstatus(ctx):
    for s in ctx.author.activities:
        if isinstance(s, discord.CustomActivity):
            print(s)