WIP: Create base moon command
All checks were successful
Test / build (push) Successful in 8s

This commit is contained in:
Ethan Lane 2024-07-01 19:03:49 +01:00
parent 50c237f6fa
commit 7b620dfd90
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,27 @@
import { Command } from "../../type/command";
import { CommandInteraction, SlashCommandBuilder } from "discord.js";
import ListMoons from "./moons/list";
export default class Moons extends Command {
constructor() {
super();
this.CommandBuilder = new SlashCommandBuilder()
.setName("moons")
.setDescription("View and create moons")
.addSubcommand(subcommand =>
subcommand
.setName('list')
.setDescription('List moons you have obtained'));
}
public override async execute(interaction: CommandInteraction) {
if (!interaction.isChatInputCommand()) return;
switch (interaction.options.getSubcommand()) {
case "list":
await ListMoons(interaction);
break;
}
}
}

View file

@ -0,0 +1,5 @@
import {CommandInteraction} from "discord.js";
export default async function ListMoons(interaction: CommandInteraction) {
}