Discord API error when trying to send one command at discord using JavaScript client
client.user.presence returns a Presence, a very complex object. I believe you are looking for Presence#status, which will return online, offline, idle, or dnd Also, instead of adding every property to the userinfo object after it’s been defined, you could condense your code using object destructuring: Show code snippet Show code snippet