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:

https://discord.js.org/#/docs/main/master/class/ClientUser?scrollTo=setStatus
bot.user.setStatus()
Thanks, now solved.
Surprisingly couldn't find it in the Google index, usually does.
Oh, you might also wanna check for
bot.user.setGame()
if its solved close your issue please! 馃憤
How did you fix it ?
This is over 6 months old!? Are you trying to set your bot to playing a game or set it to a status (dnd, online, idle etc)
Both are on the docs here https://discord.js.org/#/docs/main/stable/class/ClientUser
I can't seem to get the "bot.guilds.size" working.
@Realsupersaiyan head over to our official discord server at https://discord.gg/bRCvFy9 and ask your question there.
Most helpful comment
Oh, you might also wanna check for
bot.user.setGame()if its solved close your issue please! 馃憤