diff --git a/src/commands/stage/droprarity.ts b/src/commands/stage/droprarity.ts index 38e7973..f776930 100644 --- a/src/commands/stage/droprarity.ts +++ b/src/commands/stage/droprarity.ts @@ -4,7 +4,6 @@ import { CardRarity, CardRarityChoices, CardRarityParse } from "../../constants/ import { readFileSync } from "fs"; import Inventory from "../../database/entities/app/Inventory"; import { v4 } from "uuid"; -import { CoreClient } from "../../client/client"; import path from "path"; import GetCardsHelper from "../../helpers/DropHelpers/GetCardsHelper"; import DropEmbedHelper from "../../helpers/DropHelpers/DropEmbedHelper"; @@ -42,7 +41,7 @@ export default class Droprarity extends Command { return; } - const card = await GetCardsHelper.GetRandomCardByRarity(rarityType); + const card = GetCardsHelper.GetRandomCardByRarity(rarityType); if (!card) { await interaction.reply("Card not found"); diff --git a/tests/commands/drop.test.ts b/tests/commands/drop.test.ts index e97511c..81b5f4a 100644 --- a/tests/commands/drop.test.ts +++ b/tests/commands/drop.test.ts @@ -27,7 +27,7 @@ describe("execute", () => { describe("GIVEN user is in the database", () => { let interaction: CommandInteractionMock; let user: User; - let randomCard = { + const randomCard = { card: { id: "cardId", path: "https://google.com/",