A
A
Artem Rassadin2020-11-28 15:11:32
Node.js
Artem Rassadin, 2020-11-28 15:11:32

Why is the user status displayed incorrectly in discord.js?

command(client, 'online', message => {
  message.channel.send(message.author.presence.status);
})


This code should print the user's status, but the problem is that the response is always offline. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-11-28
@Artyom02

most likely, your bot does not have access to user statuses, how to give it out:
Discord Developer Portal >>> your application >>> Bot >>> Privileged Gateway Intents >>> Presence Intent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question