我试图让一个机器人对它自己的消息作出反应,但是当它试图得到这个消息时:
/Desktop/Bot/main.lua:96: attempt to call method 'reactionAdd' (a nil value)
下面是让bot对它的消息
作出反应的脚本if message.content == "press f to pay respects" then
if message.author.bot then
message.reactions:reactionAdd(":seven:")
end
end
我想你要找的语法是message:addReaction(":seven:")
。
您可能正在寻找message:addReaction("emoji id")