Search code examples
javascriptvisual-studiovisual-studio-codediscord.js

discord,js confusion, I want to add a status to my discord bot but my code isn't working properly, how can I make a status for my bot?


I tried doing already but as you can see from the picture below it didn't work how can I fix it? code here what discord shows


Solution

  • Setting the client's activity would require the keyword activity instead of game

    So, for example:

    client.user.setPresence({
        activity: {
            name: 'Using -help',
            type: 'STREAMING',
            url: 'https://www.twitch.tv/yournamehere'
        },
        status: 'online',
    })