permanent-waves/commands/invalid_command.ts

11 lines
404 B
TypeScript
Raw Normal View History

2024-05-01 02:44:20 +00:00
import { Interaction } from 'discord.js';
export async function invalidCommand(interaction: Interaction) {
if (!interaction.guildId) return;
await interaction.reply(invalidCommandResponse);
}
const invalidCommandResponse = {
content: `Either you somehow sent an invalid command or waves didn't understand the command for some reason. Try again or poke sykora about it.`,
ephemeral: true
}