import { createCommand } from "@shared/lib/utils"; import { SlashCommandBuilder } from "discord.js"; import { getGuildConfig } 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) => { const guildConfig = await getGuildConfig(interaction.guildId!); // Check if feedback channel is configured if (!guildConfig.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 }); } });