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.');; } })
@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.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.