📌  相关文章
📜  discordjs say 命令 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:09.755000             🧑  作者: Mango

代码示例4
const Discord = require('discord.js');
module.exports = {
name:'say',
alias:[],
execute: (client, message, args) => {
  
  let texto = args.join(' ')
      if(!texto){
        const embed = new Discord.MessageEmbed()
        .setTitle('Error')
        .setDescription(`<:_x_:880490001354346506> ${message.author} debes decir algo <:_x_:880490001354346506>`)
        .setColor("RANDOM")
       return message.channel.send(embed).then(msg => msg.delete({timeout: 5000}))
      }
  
    message.delete();
message.channel.send(texto)

}

}//event handler