From a050dd713128f7bcc18e62e72aa6749bfb076ff7 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 3 Feb 2025 18:23:29 +0000 Subject: [PATCH] Split expiry date to its own field --- src/helpers/EffectHelper.ts | 10 ++++++++-- tests/helpers/__snapshots__/EffectHelper.test.ts.snap | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/helpers/EffectHelper.ts b/src/helpers/EffectHelper.ts index c44dfc4..6c38cac 100644 --- a/src/helpers/EffectHelper.ts +++ b/src/helpers/EffectHelper.ts @@ -96,8 +96,14 @@ export default class EffectHelper { embed.addFields([ { name: "Active", - value: `${EffectDetails.get(activeEffect.Name)?.friendlyName} (Exp. )`, - } + value: `${EffectDetails.get(activeEffect.Name)?.friendlyName}`, + inline: true, + }, + { + name: "Expires", + value: ``, + inline: true, + }, ]); } diff --git a/tests/helpers/__snapshots__/EffectHelper.test.ts.snap b/tests/helpers/__snapshots__/EffectHelper.test.ts.snap index a78f16d..f6e5e8e 100644 --- a/tests/helpers/__snapshots__/EffectHelper.test.ts.snap +++ b/tests/helpers/__snapshots__/EffectHelper.test.ts.snap @@ -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. )", + "value": "Unclaimed Chance Up", + }, + { + "inline": true, + "name": "Expires", + "value": "", }, ], "footer": {