From ab7043d75f10cd64246b19937747713b8ff9bccc Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Fri, 21 Oct 2022 15:49:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20deprecate=20moduleData?= =?UTF-8?q?=20and=20metadata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/events/interactionCreate/handlers/command/index.ts | 3 +-- src/handlers/command/index.ts | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) 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);