机器人不返回消息

问题描述

我想编写一个脚本,当您不提及某人时,该机器人说要提及,但该机器人没有返回消息

   const Discord = require('discord.js');


exports.run = async (client,message,args) => {



let avatar = message.author.displayAvatarURL({format: 'png'});

let fotoamigo = message.mentions.users.first().displayAvatarURL({format: 'png'});

let user = message.mentions.users.first() || client.users.cache.get(args[0]);
if (!user) {
return message.reply('mention someone please');
}

message.channel.send(`ta na mão :) `,{files: [fotoamigo]}) 

}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)