“Discordjs Say Command” Réponses codées

Commande Discord Say

client.on('message', message => {
    if (message.content.startsWith(prefix + 'say')) {
        if (message.author.bot) return;
        const SayMessage = message.content.slice(4).trim();
        message.channel.send("**" + SayMessage + "**")
        message.channel.send("- " + `**${message.author}**`)
    }
});
Undefined

Discordjs Say Command

if (command === 'say') {
		let text = args.join(' ');
		message.delete();
		message.channel.send(text);
	}
Wrong Worm

Discordjs Say Command

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
Alive Alpaca

Réponses similaires à “Discordjs Say Command”

Questions similaires à “Discordjs Say Command”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code