2023-04-15 22:06:35 +02:00
|
|
|
import { ApplicationCommandOptionType } from 'discord.js'
|
|
|
|
import { Command } from '../structures/command'
|
|
|
|
import { RunOptions } from '../types/commandTypes'
|
|
|
|
export default new Command({
|
2023-06-24 21:09:56 +02:00
|
|
|
name: 'echo',
|
|
|
|
description: 'Echoes a text',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'echo',
|
|
|
|
description: 'The text to echo',
|
|
|
|
type: ApplicationCommandOptionType.String,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
run: async (interaction: RunOptions) => {
|
|
|
|
console.log('echo called')
|
|
|
|
interaction.interaction.reply(interaction.toString())
|
|
|
|
}
|
2023-04-15 22:06:35 +02:00
|
|
|
})
|