Missing Button

Hello, I had some working code to display a button to our github repo, but with the new UI update it seems to be missing.
const formatted = await format(status);
console.log(formatted);
client.setActivity(formatted);
const formatted = await format(status);
console.log(formatted);
client.setActivity(formatted);
formatted is:
{
state: 'Adele | 21',
details: 'Set Fire To The Rain',
largeImageKey: 'someImage',
smallImageKey: 'someImage',
smallImageText: 'Volume: 100%',
instance: true,
endTimestamp: 1725733828,
partySize: null,
partyMax: null,
buttons: [
{
label: 'GitHub Repo',
url: 'https://github.com/myRepo'
}
]
}
{
state: 'Adele | 21',
details: 'Set Fire To The Rain',
largeImageKey: 'someImage',
smallImageKey: 'someImage',
smallImageText: 'Volume: 100%',
instance: true,
endTimestamp: 1725733828,
partySize: null,
partyMax: null,
buttons: [
{
label: 'GitHub Repo',
url: 'https://github.com/myRepo'
}
]
}
How can I get the button to display?
2 Replies
d.js toolkit
d.js toolkit3mo 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
aquila__.
aquila__.OP3mo ago
Node v20.12.2, not using D.js, but I was told to ask here when I asked where to ask. Should I still move? ah dang, well thanks anyway. do you know any updated packages by any chance? okay thanks so much!
Want results from more Discord servers?
Add your server