Fixed embed bug

This commit is contained in:
CorwinDev 2022-12-19 14:35:20 +01:00
parent 367e7f3066
commit 66a0ce9d71
2 changed files with 4 additions and 7 deletions

View file

@ -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,
},
{

View file

@ -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) => {