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);
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);
13 Replies
d.js toolkit
d.js toolkit•4mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - ✅ Marked as resolved by staff
Unknown User
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Rat tv.fr_
Rat tv.fr_OP•4mo ago
I run this code in my mac for my account
Unknown User
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Rat tv.fr_
Rat tv.fr_OP•4mo ago
I found apps that did rich presence with buttons but it's just for Windows not Mac OS
Unknown User
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Rat tv.fr_
Rat tv.fr_OP•4mo ago
Do you know if there is another discord js plugin that manages rich presence?
Unknown User
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Rat tv.fr_
Rat tv.fr_OP•4mo ago
discord.py maybe?
Unknown User
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Rat tv.fr_
Rat tv.fr_OP•4mo ago
have a good day (for me it’s early 2 a.m. so I’m going to get busy)
Unknown User
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Rat tv.fr_
Rat tv.fr_OP•4mo ago
I look at my profile It actually works on the phone but not my PC app. Okay :AI: :pepeOK: Thanks u
Want results from more Discord servers?
Add your server