D
D
DrunkCats2020-07-29 14:59:26
JavaScript
DrunkCats, 2020-07-29 14:59:26

How to create a command that will output bot ping on Discord.js?

I wanted to make a command in order to know the ping of the bot, I did not find it in the documentation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-29
@DrunkCats

if (message.content === prefix + 'ping') {
    message.channel.send(`<@${bot.user.id}>`)
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question