This commit is contained in:
parent
f903847204
commit
a29cd2ed20
2 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
|
|
|
@ -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/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue