mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +00:00
Fixed embed bug
This commit is contained in:
parent
367e7f3066
commit
66a0ce9d71
2 changed files with 4 additions and 7 deletions
|
|
@ -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,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue