gpt4 book ai didi

python - 添加对 ctx.author 消息的 react discord.py lib

转载 作者:行者123 更新时间:2023-12-05 03:43:31 30 4
gpt4 key购买 nike

我想对 ctx.author 消息使用react。我尝试了什么:

@client.command()
async def help:
command.add_reaction(':x:')
await ctx.author.send('Something')

但是我得到那个命令没有add_reaction

最佳答案

command.add_reaction(':x:') 替换为 await ctx.message.add_reaction('❌')

关于python - 添加对 ctx.author 消息的 react discord.py lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66753831/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com