Help with nodejs (discord bot)

How do i make the bot not mention the user that ran the command every time it is ran? And i don’t want stuff like “reading this guide will help you” i just want direct code.

client.on("message", msg => {
  if (msg.content === "ping") {
    msg.reply("pong");
  }
})
client.on("message", msg => {
  if (msg.content === "ping") {
    msg.channel.send('Pong.');;
  }
})
3 Likes

@Alonso-Pablo Answered correctly; just to clarify:

.reply will send the message with @user, (value)

where has .channel.send will just send the value specified.

2 Likes