This commit is contained in:
parent
50c237f6fa
commit
7b620dfd90
2 changed files with 32 additions and 0 deletions
27
src/commands/304276391837302787/moons.ts
Normal file
27
src/commands/304276391837302787/moons.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
5
src/commands/304276391837302787/moons/list.ts
Normal file
5
src/commands/304276391837302787/moons/list.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {CommandInteraction} from "discord.js";
|
||||
|
||||
export default async function ListMoons(interaction: CommandInteraction) {
|
||||
|
||||
}
|
Loading…
Reference in a new issue