wip
This commit is contained in:
15
src/components/commands.component.ts
Normal file
15
src/components/commands.component.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { SlashCommandBuilder } from "discord.js";
|
||||
import { z } from "zod";
|
||||
|
||||
export const Commands = z.enum(["water-me"]);
|
||||
export type CommandsType = z.output<typeof Commands>;
|
||||
|
||||
export default function getCommands() {
|
||||
const commands = [
|
||||
new SlashCommandBuilder()
|
||||
.setName(Commands.Enum["water-me"])
|
||||
.setDescription("giess mich mit etwas wasser :3"),
|
||||
].map((command) => command.toJSON());
|
||||
|
||||
return commands;
|
||||
}
|
||||
Reference in New Issue
Block a user