30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { createCommand } from "@shared/lib/utils";
|
|
import { SlashCommandBuilder } from "discord.js";
|
|
import { config } from "@shared/lib/config";
|
|
import { createErrorEmbed } from "@/lib/embeds";
|
|
import { getFeedbackTypeMenu } from "@/modules/feedback/feedback.view";
|
|
|
|
export const feedback = createCommand({
|
|
data: new SlashCommandBuilder()
|
|
.setName("feedback")
|
|
.setDescription("Submit feedback, feature requests, or bug reports"),
|
|
execute: async (interaction) => {
|
|
// Check if feedback channel is configured
|
|
if (!config.feedbackChannelId) {
|
|
await interaction.reply({
|
|
embeds: [createErrorEmbed("Feedback system is not configured. Please contact an administrator.")],
|
|
ephemeral: true
|
|
});
|
|
return;
|
|
}
|
|
|
|
// Show feedback type selection menu
|
|
const menu = getFeedbackTypeMenu();
|
|
await interaction.reply({
|
|
content: "## 🌟 Share Your Thoughts\n\nThank you for helping improve Aurora! Please select the type of feedback you'd like to submit:",
|
|
...menu,
|
|
ephemeral: true
|
|
});
|
|
}
|
|
});
|