From 81443b9bb202ff016628f5405b97089db8e54c74 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:07:21 +0100 Subject: [PATCH] fix: add title instead of removing it --- src/commands/feedback-modal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/feedback-modal.ts b/src/commands/feedback-modal.ts index 45e0faf..4a5cc4c 100644 --- a/src/commands/feedback-modal.ts +++ b/src/commands/feedback-modal.ts @@ -8,12 +8,12 @@ export default commandModule({ const value = modal.fields.getTextInputValue('message'); const feedbackChannel = await modal.client.channels.fetch(process.env.FEEDBACK_CHANNEL_ID); const embed = new EmbedBuilder({ + title: `Feedback from ${modal.user.username}`, description: value, color: 0x00ff00, }); feedbackChannel!.isSendable() && (await feedbackChannel.send({ - content: `Feedback from ${modal.user.username}`, embeds: [embed], })); modal.reply({ ephemeral: true, content: 'Sent! Thanks for the feedback!' });