presence: fix top color

This commit is contained in:
Cynthia Foxwell 2025-05-01 21:36:20 -06:00
parent 5a235ad023
commit 1831f4d3db
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -357,7 +357,7 @@ presence.callback = async function (msg, line) {
const finalComponents = [{type: 10, content: `Presence for **${formatUsername(target)}**: ${icons.join(" ")}`}];
if (components.length > 0) {
const card = {type: 17, components: [], accent_color: getTopColor(msg, target)};
const card = {type: 17, components: [], accent_color: getTopColor(msg, target.id)};
for (const [index, component] of components.entries()) {
if (Array.isArray(component)) {