From fddf5047cddad20c664250a1d515d135e220c63e Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 7 Apr 2025 13:44:50 -0600 Subject: [PATCH] presence: forgot to add timestamp to if branched ones --- src/modules/utility/presence.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/utility/presence.js b/src/modules/utility/presence.js index baf4642..aa852d6 100644 --- a/src/modules/utility/presence.js +++ b/src/modules/utility/presence.js @@ -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 = {