📜  discord bot python 上的反应 - Python 代码示例

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

代码示例1
@client.event
async def on_reaction_add(reaction, user):
    # Steals your reaction by removing the original and adding it's own
    if not user.bot and reaction.message.content == "try me":
        await reaction.remove(user)
        await reaction.message.add_reaction(reaction.emoji)