⚰️ remove moduleData and metadata code

This commit is contained in:
Axel Olausson Holtenäs 2022-10-21 19:45:56 +02:00
parent 23e4834836
commit dab00617a2
2 changed files with 0 additions and 15 deletions

View file

@ -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;
};

View file

@ -2,6 +2,5 @@ import { SlashCommandBuilder } from "@discordjs/builders";
export interface ICommand {
builder: SlashCommandBuilder;
moduleData: any;
execute: Promise<void>;
}