From ff2980f3c097a6422dfea437a4d3f6f53eefda25 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 3 Jan 2025 14:31:27 +0000 Subject: [PATCH] Fix suggested changes --- src/buttonEvents/Effects.ts | 4 ++-- tests/buttonEvents/Effects.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buttonEvents/Effects.ts b/src/buttonEvents/Effects.ts index a09ffaa..8607493 100644 --- a/src/buttonEvents/Effects.ts +++ b/src/buttonEvents/Effects.ts @@ -56,7 +56,7 @@ export default class Effects extends ButtonEvent { const effectDetail = EffectDetails.get(id); if (!effectDetail) { - await interaction.reply("Unable to find effect!"); + await interaction.reply("Effect not found in system!"); return; } @@ -114,7 +114,7 @@ export default class Effects extends ButtonEvent { const effectDetail = EffectDetails.get(id); if (!effectDetail) { - await interaction.reply("Unable to find effect!"); + await interaction.reply("Effect not found in system!"); return; } diff --git a/tests/buttonEvents/Effects.test.ts b/tests/buttonEvents/Effects.test.ts index b500491..8a2f755 100644 --- a/tests/buttonEvents/Effects.test.ts +++ b/tests/buttonEvents/Effects.test.ts @@ -80,14 +80,14 @@ describe("Effects", () => { interaction.customId = "effects use confirm invalid"; await effects.UseConfirm(interaction); - expect(interaction.reply).toHaveBeenCalledWith("Unable to find effect!"); + expect(interaction.reply).toHaveBeenCalledWith("Effect not found in system!"); }); it("should reply with error message when effect detail is not found in UseCancel", async () => { interaction.customId = "effects use cancel invalid"; await effects.UseCancel(interaction); - expect(interaction.reply).toHaveBeenCalledWith("Unable to find effect!"); + expect(interaction.reply).toHaveBeenCalledWith("Effect not found in system!"); }); it("should update interaction with embed and row when effect is used successfully", async () => {