Answers for "discord.js say command"

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
0

discord.js say command

const prefix = `PREFIX`
if (message.content.toLowerCase().startsWith(prefix + "say")) 
 {
  let MSG = message.content.split(" ");
  let Query = MSG.slice(1).join("+");
  let QueryD = MSG.slice(1).join(" ");
  if (!Query) message.reply("Please specify something for me to say!")
  else
  {
    message.channel.send(QueryD + " -" + message.author.tag)
}
}
Posted by: Guest on September-25-2021
0

discord.js how to go back a file

// When going back a file use ('../File_Name')
Posted by: Guest on June-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language