presence: forgot to add timestamp to if branched ones

This commit is contained in:
Cynthia Foxwell 2025-04-07 13:44:50 -06:00
parent 72ca402bcd
commit fddf5047cd
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -107,6 +107,8 @@ presence.callback = async function (msg, line) {
embed.title = activity.state ?? "";
}
embed.timestamp = new Date(activity.created_at).toISOString();
embeds.push(embed);
} else if (activity.type == 6) {
const embed = {};
@ -130,6 +132,8 @@ presence.callback = async function (msg, line) {
};
}
embed.timestamp = new Date(activity.created_at).toISOString();
embeds.push(embed);
} else {
const embed = {