presence: forgot to add timestamp to if branched ones
This commit is contained in:
parent
72ca402bcd
commit
fddf5047cd
1 changed files with 4 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue