Add cache expiry to LRN
This commit is contained in:
parent
3de43aa6f4
commit
b264ea6e4d
3
index.js
3
index.js
|
@ -215,7 +215,8 @@ Client.on("interactionCreate", async (interaction) => {
|
||||||
{ name: "SPID", value: `\`${lrn.spid}\`` || "`NULL`", inline: true },
|
{ name: "SPID", value: `\`${lrn.spid}\`` || "`NULL`", inline: true },
|
||||||
{ name: "Activation Date", value: `<t:${Math.floor(lrn.activation)}>` }
|
{ name: "Activation Date", value: `<t:${Math.floor(lrn.activation)}>` }
|
||||||
],
|
],
|
||||||
footer: { text: "This is cached data." },
|
footer: { text: "This is cached data. Expires" },
|
||||||
|
timestamp: new Date(cached.timestamp).toISOString(),
|
||||||
color: 0x00FF00
|
color: 0x00FF00
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue