💡 Added comments
This commit is contained in:
parent
8e260391f6
commit
586caab107
2 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@ export const builder = new SlashCommandBuilder()
|
||||||
|
|
||||||
.addSubcommand(modules.lookup.builder);
|
.addSubcommand(modules.lookup.builder);
|
||||||
|
|
||||||
|
// Execute the command
|
||||||
export const execute = async (interaction: ChatInputCommandInteraction) => {
|
export const execute = async (interaction: ChatInputCommandInteraction) => {
|
||||||
switch (interaction.options.getSubcommand()) {
|
switch (interaction.options.getSubcommand()) {
|
||||||
case "lookup":
|
case "lookup":
|
||||||
|
|
|
@ -8,6 +8,7 @@ import modules from "./modules";
|
||||||
// Function
|
// Function
|
||||||
export const moduleData = modules;
|
export const moduleData = modules;
|
||||||
|
|
||||||
|
// Create a discord builder
|
||||||
export const builder = (group: SlashCommandSubcommandGroupBuilder) => {
|
export const builder = (group: SlashCommandSubcommandGroupBuilder) => {
|
||||||
return group
|
return group
|
||||||
.setName("counters")
|
.setName("counters")
|
||||||
|
@ -16,6 +17,7 @@ export const builder = (group: SlashCommandSubcommandGroupBuilder) => {
|
||||||
.addSubcommand(modules.remove.builder);
|
.addSubcommand(modules.remove.builder);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Execute the command
|
||||||
export const execute = async (interaction: ChatInputCommandInteraction) => {
|
export const execute = async (interaction: ChatInputCommandInteraction) => {
|
||||||
const { options } = interaction;
|
const { options } = interaction;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue