Answers for "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
1

discord say command

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}**`)
    }
});
Posted by: Guest on January-14-2021
1

Bots latency discord js

var yourping = new Date().getTime() - message.createdTimestamp
var botping = Math.round(bot.ws.ping)

message.channel.send(`Your ping: ${yourping} \nBots ping: ${botping}`)
Posted by: Guest on June-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language