aquila__.
aquila__.
DIAdiscord.js - Imagine an app
Created by aquila__. on 9/7/2024 in #djs-questions
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?
5 replies