⚰️ remove moduleData and metadata code
This commit is contained in:
parent
23e4834836
commit
dab00617a2
2 changed files with 0 additions and 15 deletions
|
@ -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;
|
||||
};
|
|
@ -2,6 +2,5 @@ import { SlashCommandBuilder } from "@discordjs/builders";
|
|||
|
||||
export interface ICommand {
|
||||
builder: SlashCommandBuilder;
|
||||
moduleData: any;
|
||||
execute: Promise<void>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue