mirror of
https://github.com/SrIzan10/ezbd.git
synced 2026-06-06 00:56:57 +00:00
fix: add title instead of removing it
This commit is contained in:
@@ -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!' });
|
||||
|
||||
Reference in New Issue
Block a user