From 66a0ce9d71bc061d9759f46070a542cdc8b8adb0 Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Mon, 19 Dec 2022 14:35:20 +0100 Subject: [PATCH] Fixed embed bug --- src/commands/bot/owner.js | 4 ++-- src/interactions/Command/embed.js | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/commands/bot/owner.js b/src/commands/bot/owner.js index b21dd2c..219a514 100644 --- a/src/commands/bot/owner.js +++ b/src/commands/bot/owner.js @@ -7,7 +7,7 @@ module.exports = async (client, interaction, args) => { thumbnail: client.user.avatarURL({ dynamic: true, size: 1024 }), fields: [{ name: "👑┆Owner name", - value: `Corwinl`, + value: `Corwin`, inline: true, }, { @@ -17,7 +17,7 @@ module.exports = async (client, interaction, args) => { }, { name: "🏢┆Organization", - value: `CorwinDev`, + value: `CoreWare`, inline: true, }, { diff --git a/src/interactions/Command/embed.js b/src/interactions/Command/embed.js index cc5cdb6..8b08387 100644 --- a/src/interactions/Command/embed.js +++ b/src/interactions/Command/embed.js @@ -116,10 +116,6 @@ module.exports = { collector.on("collect", async (i) => { if (i.customId === "embedSelect") { i.deferUpdate(); - const embedData = i.message.embeds[0]; - if (embedData.description == "Please select some options") { - embed.setDescription(``); - } if (i.values == "title_embed") { interaction.channel @@ -345,7 +341,8 @@ module.exports = { ); channel - .createWebhook(interaction.guild.name, { + .createWebhook({ + name: interaction.guild.name, avatar: interaction.guild.iconURL(), }) .then(async (_webhook) => {