question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SOLVED] `bot.setStatus()` not working?

See original GitHub issue

I have a basic discord.js bot that uses the setStatus() command to display how many servers it is in and the command to receive the list of commands. I put this inside a bot.on("ready") handler, just in case that is important. Here is a screenshot of the console error: image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

37reactions
iCrawlcommented, Dec 5, 2016

Oh, you might also wanna check for

bot.user.setGame()

if its solved close your issue please! 👍

6reactions
KaiCodeincommented, Feb 25, 2021

I can’t seem to get the “bot.guilds.size” working.

bot.guilds.size does not work anymore.

This works for me: bot.guilds.cache.size

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord.js - setStatus not being called inside .then
I've tested a multitude of things. The setStatus methods are being called and I've tested that, but the status of the bot isn't...
Read more >
Developers - [SOLVED] `bot.setStatus()` not working? - - Bountysource
I have a basic discord.js bot that uses the setStatus() command to display how many servers it is in and the command to...
Read more >
Discord.js setStatus() and setPresence() not working-discord.js
Try using setActivity client.user.setActivity('Use "-help"', { type: 'PLAYING', url: 'https://discordapp.com/' });. APartOfMe 183. Source: stackoverflow.com ...
Read more >
How to Update Discord bot status with Discord.py
Looking at the latest iteration of our Discord bot, it isn't very ... Streaming() to display the bot as streaming with an optional...
Read more >
Bot discord set activity - Code Help - Glitch Support
the problem is on the bot he display “the world', { type: 'WATCHING'}” and not just “the world” and ... setStatus(“dnd”);” nothing change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found