#Bot presence not updating

17 messages · Page 1 of 1 (latest)

snow zinc
#

code:

                client.user?.setPresence({
            status,
            activities: [
                {
                    name: client.config.botPresence.activity.replacer({ totalPlayers, totalMaxPlayers, totalServers }),
                    type,
                },
            ],
        });
        console.log(client.user?.presence);

console:

ClientPresence {
  userId: null,
  guild: null,
  status: 'Online',
  activities: [
    Activity {
      name: '0 players on 2 servers',
      type: 'Watching',
      url: null,
      details: null,
      state: null,
      applicationId: null,
      timestamps: null,
      party: null,
      assets: null,
      flags: [ActivityFlagsBitField],
      emoji: null,
      buttons: [],
      createdTimestamp: undefined
    }
  ],
  clientStatus: null
}

For some reason my bot does not have any status or custom presence. anyone know why?

near trenchBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
wintry fossil
#

And the activity seems to be correct too

#

(as the log shows)

snow zinc
wintry fossil
#

I meant "does"

#

I dont get your issue, it has the status and also the activity correctly

snow zinc
#

thats why im confused, im working for years with discord with djs bun never had this issue before

wintry fossil
#

What issue

snow zinc
#

for some reason while the client object is correct it does not display it in discord

wintry fossil
#

Or setActivity

snow zinc
#

yes

shy raptor
#

Can you console.log(client.user.presence) in any event you listen to with that bot?

snow zinc
shy raptor
#

Yeah, but it‘s immediately after the setPresence call, so that can’t check for something else (re)setting the presence. Log it somewhere else