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 { readFileSync } from "fs";
|
||||||
import Inventory from "../../database/entities/app/Inventory";
|
import Inventory from "../../database/entities/app/Inventory";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
import { CoreClient } from "../../client/client";
|
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import GetCardsHelper from "../../helpers/DropHelpers/GetCardsHelper";
|
import GetCardsHelper from "../../helpers/DropHelpers/GetCardsHelper";
|
||||||
import DropEmbedHelper from "../../helpers/DropHelpers/DropEmbedHelper";
|
import DropEmbedHelper from "../../helpers/DropHelpers/DropEmbedHelper";
|
||||||
|
@ -42,7 +41,7 @@ export default class Droprarity extends Command {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const card = await GetCardsHelper.GetRandomCardByRarity(rarityType);
|
const card = GetCardsHelper.GetRandomCardByRarity(rarityType);
|
||||||
|
|
||||||
if (!card) {
|
if (!card) {
|
||||||
await interaction.reply("Card not found");
|
await interaction.reply("Card not found");
|
||||||
|
|
|
@ -27,7 +27,7 @@ describe("execute", () => {
|
||||||
describe("GIVEN user is in the database", () => {
|
describe("GIVEN user is in the database", () => {
|
||||||
let interaction: CommandInteractionMock;
|
let interaction: CommandInteractionMock;
|
||||||
let user: User;
|
let user: User;
|
||||||
let randomCard = {
|
const randomCard = {
|
||||||
card: {
|
card: {
|
||||||
id: "cardId",
|
id: "cardId",
|
||||||
path: "https://google.com/",
|
path: "https://google.com/",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue