echo.ts

1import { ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js'
2import { Command } from '@/types/bot'
3
4export default {
5	data: new SlashCommandBuilder()
6		.setName('echo')
7		.setDescription('Echoes your message back to you')
8		.addStringOption((option) =>
9			option
10				.setName('message')
11				.setDescription('The message to echo')
12				.setRequired(true),
13		),
14
15	async execute(interaction: ChatInputCommandInteraction) {
16		const message = interaction.options.getString('message', true)
17		await interaction.reply(message)
18	},
19} as Command
20