This commit is contained in:
parent
7c17e1d0d0
commit
a050dd7131
2 changed files with 15 additions and 3 deletions
|
@ -96,8 +96,14 @@ export default class EffectHelper {
|
|||
embed.addFields([
|
||||
{
|
||||
name: "Active",
|
||||
value: `${EffectDetails.get(activeEffect.Name)?.friendlyName} (Exp. <t:${Math.round(activeEffect.WhenExpires!.getTime() / 1000)}>)`,
|
||||
}
|
||||
value: `${EffectDetails.get(activeEffect.Name)?.friendlyName}`,
|
||||
inline: true,
|
||||
},
|
||||
{
|
||||
name: "Expires",
|
||||
value: `<t:${Math.round(activeEffect.WhenExpires!.getTime() / 1000)}>`,
|
||||
inline: true,
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,8 +7,14 @@ exports[`GenerateEffectEmbed GIVEN there is an active effect, EXPECT field added
|
|||
"description": "Unclaimed Chance Up x1",
|
||||
"fields": [
|
||||
{
|
||||
"inline": true,
|
||||
"name": "Active",
|
||||
"value": "Unclaimed Chance Up (Exp. <t:1738174>)",
|
||||
"value": "Unclaimed Chance Up",
|
||||
},
|
||||
{
|
||||
"inline": true,
|
||||
"name": "Expires",
|
||||
"value": "<t:1738174>",
|
||||
},
|
||||
],
|
||||
"footer": {
|
||||
|
|
Loading…
Reference in a new issue