Answers for "Bot say command discord.js"

7

Bot say command discord.js

client.on('message', message => {
    if (message.content.startsWith(prefix + 'say')) {
        if (message.author.bot) return;
        const SayMessage = message.content.slice(6).trim();
        message.channel.send(SayMessage)
        message.channel.send("Text By " + ` **${message.author}**`)
    }
});
Posted by: Guest on February-09-2021
0

Bot say command discord.js

if (command === 'say') {
	let text = args.join(' ');
	message.delete();
	message.channel.send(text);
}
Posted by: Guest on April-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language