mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 18:35:22 +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 }),
|
thumbnail: client.user.avatarURL({ dynamic: true, size: 1024 }),
|
||||||
fields: [{
|
fields: [{
|
||||||
name: "👑┆Owner name",
|
name: "👑┆Owner name",
|
||||||
value: `Corwinl`,
|
value: `Corwin`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -17,7 +17,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "🏢┆Organization",
|
name: "🏢┆Organization",
|
||||||
value: `CorwinDev`,
|
value: `CoreWare`,
|
||||||
inline: true,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -116,10 +116,6 @@ module.exports = {
|
||||||
collector.on("collect", async (i) => {
|
collector.on("collect", async (i) => {
|
||||||
if (i.customId === "embedSelect") {
|
if (i.customId === "embedSelect") {
|
||||||
i.deferUpdate();
|
i.deferUpdate();
|
||||||
const embedData = i.message.embeds[0];
|
|
||||||
if (embedData.description == "Please select some options") {
|
|
||||||
embed.setDescription(``);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i.values == "title_embed") {
|
if (i.values == "title_embed") {
|
||||||
interaction.channel
|
interaction.channel
|
||||||
|
|
@ -345,7 +341,8 @@ module.exports = {
|
||||||
);
|
);
|
||||||
|
|
||||||
channel
|
channel
|
||||||
.createWebhook(interaction.guild.name, {
|
.createWebhook({
|
||||||
|
name: interaction.guild.name,
|
||||||
avatar: interaction.guild.iconURL(),
|
avatar: interaction.guild.iconURL(),
|
||||||
})
|
})
|
||||||
.then(async (_webhook) => {
|
.then(async (_webhook) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue