diff --git a/src/events/interactionCreate/handlers/command/index.ts b/src/events/interactionCreate/handlers/command/index.ts index 2f726e9..0e79da8 100644 --- a/src/events/interactionCreate/handlers/command/index.ts +++ b/src/events/interactionCreate/handlers/command/index.ts @@ -1,6 +1,5 @@ // Dependencies import { ChatInputCommandInteraction } from "discord.js"; -import getCommandMetadata from "../../../../helpers/getCommandMetadata"; export default async (interaction: ChatInputCommandInteraction) => { if (!interaction.isCommand()) return; @@ -9,7 +8,7 @@ export default async (interaction: ChatInputCommandInteraction) => { const currentCommand = client.commands.get(commandName); if (!currentCommand) throw new Error(`Unknown command ${commandName}`); - const metadata = await getCommandMetadata(interaction, currentCommand); + // const metadata = await getCommandMetadata(interaction, currentCommand); // await deferReply(interaction, metadata.ephemeral || false); // if (metadata.guildOnly && !interaction.guild) diff --git a/src/handlers/command/index.ts b/src/handlers/command/index.ts index 865c349..09d05e2 100644 --- a/src/handlers/command/index.ts +++ b/src/handlers/command/index.ts @@ -21,10 +21,6 @@ export const register = async (client: Client) => { throw new Error( `📦 No command builder found while importing "${commandName}"` ); - if (!command.moduleData) - throw new Error( - `📦 No command moduleData found while importing "${commandName}"` - ); // Add command to collection client.commands.set(command.builder.name, command);