Commit Graph

7 Commits

Author SHA1 Message Date
syntaxbullet
2933eaeafc refactor: convert TradeService to object export pattern
Convert from class-based to object-based export for consistency with
other services (economy, inventory, quest, etc).

Changes:
- Move sessions Map and helper functions to module scope
- Convert static methods to object properties
- Update executeTrade to use withTransaction helper
- Update all imports from TradeService to tradeService

Updated files:
- trade.service.ts (main refactor)
- trade.interaction.ts (update usages)
- trade.ts command (update import and usage)

All tests passing with no breaking changes.
2025-12-24 21:57:30 +01:00
syntaxbullet
f75cc217e9 refactor: extract further UI components into views 2025-12-24 11:44:43 +01:00
syntaxbullet
eaf97572a4 refactor: replace direct EmbedBuilder usage with a new createBaseEmbed helper for consistent embed creation 2025-12-24 11:17:59 +01:00
syntaxbullet
7e986fae5a feat: Implement custom error classes, a Drizzle transaction utility, and update Discord.js ephemeral message flags. 2025-12-15 22:14:17 +01:00
syntaxbullet
b33738aee3 refactor: remove unused imports and types across trade and economy modules 2025-12-13 12:50:00 +01:00
syntaxbullet
86cbe827a2 refactor: Remove interaction deferrals, use direct replies, and make error/warning messages ephemeral in economy commands. 2025-12-13 12:46:38 +01:00
syntaxbullet
421bb26ceb feat: add trading system with dedicated modules and centralize embed creation for commands 2025-12-13 12:43:27 +01:00