Rich Presence

(sorry for my bad english i'm french 🥖)
I created a rich presence for my discord account and everything works except the buttons. Being stubborn and narrow-minded, I did the code myself but the buttons are not displayed

My code :

const RPC = require('discord-rpc');
const client = new RPC.Client({ transport: 'ipc' });

const startTimestamp = new Date();

client.on('ready', () => {
    console.log('Rich Presence est prêt !');

    client.setActivity({
        state: 'disca.fr',
        details: 'pensionnat.disca.fr',
        largeImageKey: 'cat-bot',
        largeImageText: 'Cat Bot',
        partyId: 'ae488379-351d-4a4f-ad32-2b9b01c91657',
        instance: true,
        buttons: [
            { label: 'Visitez disca.fr', url: 'https://disca.fr' },
            { label: 'Rejoignez le pensionnat', url: 'https://pensionnat.disca.fr' }
        ]
    });
});

client.login({ clientId: 'i remove this' }).catch(console.error);
Was this page helpful?