💡 Added comments

This commit is contained in:
Axel Olausson Holtenäs 2022-10-16 15:19:39 +02:00
parent 8e260391f6
commit 586caab107
2 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@ export const builder = new SlashCommandBuilder()
.addSubcommand(modules.lookup.builder);
// Execute the command
export const execute = async (interaction: ChatInputCommandInteraction) => {
switch (interaction.options.getSubcommand()) {
case "lookup":

View file

@ -8,6 +8,7 @@ import modules from "./modules";
// Function
export const moduleData = modules;
// Create a discord builder
export const builder = (group: SlashCommandSubcommandGroupBuilder) => {
return group
.setName("counters")
@ -16,6 +17,7 @@ export const builder = (group: SlashCommandSubcommandGroupBuilder) => {
.addSubcommand(modules.remove.builder);
};
// Execute the command
export const execute = async (interaction: ChatInputCommandInteraction) => {
const { options } = interaction;