Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit c8208ad

Browse files
h
1 parent cbb3491 commit c8208ad

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/commands/misc/kill.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1-
import { EmbedBuilder, ChatInputCommandInteraction } from "discord.js";
2-
import { KOGBot } from "../../index.js";
1+
import { EmbedBuilder, ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
2+
import { KOGBot } from "../../index.js";
33

44
class KillCommand implements SlashCommand {
55
name = 'kill';
66
description = 'Kill a user (in messages).';
77
subcommands = [];
88
parameters = [];
9-
dev = true;
9+
dev = true;
1010
kogBot: KOGBot;
1111

1212
constructor(kogBot: KOGBot) {
1313
this.kogBot = kogBot;
1414
}
1515

16+
getCommandData() {
17+
return new SlashCommandBuilder()
18+
.setName(this.name)
19+
.setDescription(this.description)
20+
.addUserOption(option =>
21+
option.setName('user')
22+
.setDescription('The user to kill')
23+
.setRequired(true)
24+
);
25+
}
26+
1627
async execute(interaction: ChatInputCommandInteraction): Promise<void> {
1728
try {
18-
1929
const user = interaction.options.getUser('user');
2030
if (!user) {
2131
interaction.reply("No user was mentioned. Please mention a user to kill.");

0 commit comments

Comments
 (0)