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.title = activity.state ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
embed.timestamp = new Date(activity.created_at).toISOString();
|
||||||
|
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
} else if (activity.type == 6) {
|
} else if (activity.type == 6) {
|
||||||
const embed = {};
|
const embed = {};
|
||||||
|
@ -130,6 +132,8 @@ presence.callback = async function (msg, line) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
embed.timestamp = new Date(activity.created_at).toISOString();
|
||||||
|
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
} else {
|
} else {
|
||||||
const embed = {
|
const embed = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue