📌  相关文章
📜  当有人对消息做出反应时的 python 不和谐动作 - TypeScript 代码示例

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

代码示例1
@bot.event
async def on_reaction_add(reaction, user):
    embed = reaction.embeds[0]
    emoji = reaction.emoji

    if user.bot:
        return

    if emoji == "emoji 1":
        fixed_channel = bot.get_channel(channel_id)
        await fixed_channel.send(embed=embed)
    elif emoji == "emoji 2":
        #do stuff
    elif emoji == "emoji 3":
        #do stuff
    else:
        return