'How to make a status command in discord.js

I want to make a command that changes my bots status. all i know is that client.user.setActivity('STATUS'); sets a status but im having trouble getting the status to set from the message



Solution 1:[1]

There are more elements to the status than just a string

client.user.setActivity({
    name: `Actual text here`,
    type: '', // 1 of the 4 below here
});

// 'WATCHING'
// 'LISTENING'
// 'PLAYING'
// 'STREAMING'

Depending on how you have your command set up depends on how it is executed, but without a code example, I have way too many choices on how to initiate this.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gh0st