diff --git a/src/helpers/getCommandMetadata/index.ts b/src/helpers/getCommandMetadata/index.ts deleted file mode 100644 index 6a6a8b7..0000000 --- a/src/helpers/getCommandMetadata/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ChatInputCommandInteraction } from "discord.js"; -import { ICommand } from "../../interfaces/Command"; - -export default async ( - interaction: ChatInputCommandInteraction, - currentCommand: ICommand -) => { - const subcommand = interaction.options.getSubcommand(); - const subcommandGroup = interaction.options.getSubcommandGroup(false); - - return subcommandGroup - ? currentCommand.moduleData[subcommandGroup].moduleData[subcommand].metadata - : currentCommand.moduleData[subcommand].metadata; -}; diff --git a/src/interfaces/Command.ts b/src/interfaces/Command.ts index f8a895a..5d6f870 100644 --- a/src/interfaces/Command.ts +++ b/src/interfaces/Command.ts @@ -2,6 +2,5 @@ import { SlashCommandBuilder } from "@discordjs/builders"; export interface ICommand { builder: SlashCommandBuilder; - moduleData: any; execute: Promise; }