我正在尝试为特定用户创建注释命令,但我的 Discord 机器人将注释作为用户公众所说的任何注释。我该如何解决?我已经知道我的代码存在问题,但我不知道如何解决它。
if (command == "Note") {
const notes = db.fetch('userInfo');
while (!args[0]) return message.channel.send("Here are your notes: " + notes);
db.set('userInfo', args.join(' '));
message.channel.send((args.join(' ')) + (" successfully noted!"));
}