From b33738aee327d7b7f0631505e34f42a71677fa37 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Sat, 13 Dec 2025 12:50:00 +0100 Subject: [PATCH] refactor: remove unused imports and types across trade and economy modules --- src/commands/economy/daily.ts | 1 - src/commands/economy/trade.ts | 1 - src/modules/trade/trade.interaction.ts | 1 - src/modules/trade/trade.service.ts | 4 ++-- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/commands/economy/daily.ts b/src/commands/economy/daily.ts index aa9fb8e..6ca4082 100644 --- a/src/commands/economy/daily.ts +++ b/src/commands/economy/daily.ts @@ -1,7 +1,6 @@ import { createCommand } from "@/lib/utils"; import { SlashCommandBuilder, EmbedBuilder } from "discord.js"; import { economyService } from "@/modules/economy/economy.service"; -import { userService } from "@/modules/user/user.service"; import { createErrorEmbed, createWarningEmbed } from "@lib/embeds"; export const daily = createCommand({ diff --git a/src/commands/economy/trade.ts b/src/commands/economy/trade.ts index 6a90445..6a42824 100644 --- a/src/commands/economy/trade.ts +++ b/src/commands/economy/trade.ts @@ -1,7 +1,6 @@ import { createCommand } from "@/lib/utils"; import { SlashCommandBuilder, EmbedBuilder, ChannelType, ActionRowBuilder, ButtonBuilder, ButtonStyle, ThreadAutoArchiveDuration } from "discord.js"; import { TradeService } from "@/modules/trade/trade.service"; -import { updateTradeDashboard } from "@/modules/trade/trade.interaction"; import { createErrorEmbed, createWarningEmbed } from "@lib/embeds"; export const trade = createCommand({ diff --git a/src/modules/trade/trade.interaction.ts b/src/modules/trade/trade.interaction.ts index 4609608..63e3031 100644 --- a/src/modules/trade/trade.interaction.ts +++ b/src/modules/trade/trade.interaction.ts @@ -13,7 +13,6 @@ import { TextInputStyle, ThreadChannel, TextChannel, - Colors } from "discord.js"; import { TradeService } from "./trade.service"; import { inventoryService } from "@/modules/inventory/inventory.service"; diff --git a/src/modules/trade/trade.service.ts b/src/modules/trade/trade.service.ts index 11aed33..1768591 100644 --- a/src/modules/trade/trade.service.ts +++ b/src/modules/trade/trade.service.ts @@ -1,8 +1,8 @@ -import type { TradeSession, TradeParticipant, TradeState } from "./trade.types"; +import type { TradeSession, TradeParticipant } from "./trade.types"; import { DrizzleClient } from "@/lib/DrizzleClient"; import { economyService } from "@/modules/economy/economy.service"; import { inventoryService } from "@/modules/inventory/inventory.service"; -import { itemTransactions, transactions } from "@/db/schema"; +import { itemTransactions } from "@/db/schema"; export class TradeService { private static sessions = new Map();