forked from syntaxbullet/AuroraBot-discord
refactor: relocate interaction routes from events to lib directory
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user