机器人不返回消息

时间:2020-09-02 04:11:20

标签: node.js avatar

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

   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]}) 

}

0 个答案:

没有答案
相关问题