From d15639b5049694ffd6e6eb95a76596ebdbbddec1 Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 28 Mar 2023 22:01:33 +0200 Subject: [PATCH] Fixiing send command --- commands/send.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/send.js b/commands/send.js index a8cd711..3a44581 100644 --- a/commands/send.js +++ b/commands/send.js @@ -22,18 +22,19 @@ module.exports = { async execute(interaction) { - await interaction.deferReply(); + await interaction.deferReply({ ephemeral: true }); const message = interaction.options.getString('message'); const channel = interaction.options.getChannel('channel'); + const embedColor = Number(color.replace("#", "0x")); if (!message) { - interaction.reply({ content: 'Please provide a message to send.', ephemeral: true }) + interaction.editReply({ content: 'Please provide a message to send.', ephemeral: true }) return } if (!channel) { - interaction.reply({ content: 'Please provide a channel to send the message to.', ephemeral: true }) + interaction.editReply({ content: 'Please provide a channel to send the message to.', ephemeral: true }) return } @@ -42,7 +43,7 @@ module.exports = { { title: interaction.guild.name, description: message, - color: color, + color: embedColor, thumbnail: { url: interaction.guild.iconURL({ dynamic: true }) },