diff --git a/src/commands/view.ts b/src/commands/view.ts index 6ed1e18..aff1ef5 100644 --- a/src/commands/view.ts +++ b/src/commands/view.ts @@ -1,10 +1,5 @@ -import { AttachmentBuilder, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js"; +import { CommandInteraction, SlashCommandBuilder } from "discord.js"; import { Command } from "../type/command"; -import { CoreClient } from "../client/client"; -import { readFileSync } from "fs"; -import path from "path"; -import Inventory from "../database/entities/app/Inventory"; -import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import AppLogger from "../client/appLogger"; import CardSearchHelper from "../helpers/CardSearchHelper"; diff --git a/src/helpers/CardSearchHelper.ts b/src/helpers/CardSearchHelper.ts index 27d19e8..c0f6bd5 100644 --- a/src/helpers/CardSearchHelper.ts +++ b/src/helpers/CardSearchHelper.ts @@ -15,7 +15,7 @@ interface ReturnedPage { export default class CardSearchHelper { public static async GenerateSearchPage(query: string, userid: string, page: number): Promise { - const fzf = new Fuse(CoreClient.Cards.flatMap(x => x.cards), { keys: ['name'] }); + const fzf = new Fuse(CoreClient.Cards.flatMap(x => x.cards), { keys: ["name"] }); const entries = fzf.search(query); const entry = entries[page];