feat: Add context commands

This commit is contained in:
Linnea Gräf 2025-04-09 18:15:32 +02:00
parent 03635e748b
commit f83a6dd1a3
No known key found for this signature in database
GPG key ID: AA563E93EB628D91
3 changed files with 70 additions and 14 deletions

14
src/commands/botsex.ts Normal file
View file

@ -0,0 +1,14 @@
import { ApplicationCommandType, ContextMenuCommandBuilder, ContextMenuCommandInteraction, InteractionContextType, Snowflake } from "discord.js";
import { ContextCommand } from "../command.ts";
export default class RailUser extends ContextCommand {
contextDefinition: ContextMenuCommandBuilder =
new ContextMenuCommandBuilder()
.setName('rail')
.setType(ApplicationCommandType.User)
async run(interaction: ContextMenuCommandInteraction, target: Snowflake): Promise<void> {
await interaction.reply(`Raililng <@${target}>.`)
await new Promise(resolve => setTimeout(resolve, 1000))
await interaction.editReply(`UHGhghgghghgh. Railing successfull.`)
}
}