Buttons with Discord RPC do not appear

const DiscordRPC = require('discord-rpc');
const clientId = '#';

const TrackerRPC = new DiscordRPC.Client({ transport: 'ipc' });

async function setActivity() {
if (!TrackerRPC) return;
TrackerRPC.setActivity({
details: 'Tracker ',
state: 'By Delta-data',
startTimestamp: Date.now(),
largeImageKey: 'angry-bee',
largeImageText: 'angry-bee',
smallImageKey: '#',
smallImageText: '##',
instance: false,
buttons: [
{
label: "Discord",
url: "#1"
},
{
label: "Telegram",
url: "#2"
}
],
});
}

TrackerRPC.on('ready', async () => {
setActivity();

setInterval(() => {
setActivity();
}, 15 * 1000);
});

TrackerRPC.login({ clientId }).catch(console.error);

module.exports = {
TrackerRPC,
setActivity
};
const DiscordRPC = require('discord-rpc');
const clientId = '#';

const TrackerRPC = new DiscordRPC.Client({ transport: 'ipc' });

async function setActivity() {
if (!TrackerRPC) return;
TrackerRPC.setActivity({
details: 'Tracker ',
state: 'By Delta-data',
startTimestamp: Date.now(),
largeImageKey: 'angry-bee',
largeImageText: 'angry-bee',
smallImageKey: '#',
smallImageText: '##',
instance: false,
buttons: [
{
label: "Discord",
url: "#1"
},
{
label: "Telegram",
url: "#2"
}
],
});
}

TrackerRPC.on('ready', async () => {
setActivity();

setInterval(() => {
setActivity();
}, 15 * 1000);
});

TrackerRPC.login({ clientId }).catch(console.error);

module.exports = {
TrackerRPC,
setActivity
};
3 Replies
d.js toolkit
d.js toolkit2w 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 OP
Amgelo
Amgelo2w ago
check if a different person can see them you can't see your own buttons
oyumly
oyumlyOP2w ago
Heck, really, other people can see them, it's weird that Discord did it this way.

Did you find this page helpful?