fix: add title instead of removing it

This commit is contained in:
2024-12-13 21:07:21 +01:00
parent 30303783f9
commit 81443b9bb2

View File

@@ -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!' });