refactor: relocate interaction routes from events to lib directory

This commit is contained in:
syntaxbullet
2025-12-24 14:36:14 +01:00
parent 7698a3abaa
commit 419059904c
2 changed files with 1 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ const event: Event<Events.InteractionCreate> = {
execute: async (interaction) => { execute: async (interaction) => {
// Handle Trade Interactions // Handle Trade Interactions
if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isModalSubmit()) { if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isModalSubmit()) {
const { interactionRoutes } = await import("./interaction.routes"); const { interactionRoutes } = await import("@lib/interaction.routes");
for (const route of interactionRoutes) { for (const route of interactionRoutes) {
if (route.predicate(interaction)) { if (route.predicate(interaction)) {