Create use effect command #419
2 changed files with 4 additions and 4 deletions
|
@ -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!");
|
||||
Vylpes marked this conversation as resolved
Outdated
|
||||
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!");
|
||||
Vylpes marked this conversation as resolved
Outdated
Copilot
commented
The error message 'Unable to find effect!' is unclear. It should be 'Effect not found in the system!'. The error message 'Unable to find effect!' is unclear. It should be 'Effect not found in the system!'.
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue
The error message 'Unable to find effect!' is unclear. It should be 'Effect not found in the system!'.