【发布时间】:2021-11-09 13:39:09
【问题描述】:
我想编辑机器人在用户直接消息中发送的消息,但出现错误:
message.author.edit 不是函数
这是我的代码:
if (message.content === "#مقابلة") {
message.channel.send(eembed);
if (!(authorId in userApplications)) {
userApplications[authorId] = { "step" : 1}
message.author.send(embed1);
}
} else {
if (message.channel.type === "dm" && authorId in userApplications) {
let authorApplication = userApplications[authorId];
if (authorApplication.step == 1 ) {
authorApplication.answer1 = message.content;
message.author.edit(embed2);
authorApplication.step ++;
【问题讨论】:
标签: discord discord.js bots