Bug gix to reset boardList and columns arrays and beauty

This commit is contained in:
Raven Scott 2022-01-24 22:16:19 +00:00
parent 2f50fdf0fd
commit 0749dba48e

View File

@ -18,7 +18,6 @@ require("dotenv").config();
// Grab RUN - get Client, interaction from the bot
exports.run = async (client, interaction) => {
// eslint-disable-line no-unused-vars
// Defer to aloow for embed building
await interaction.deferReply();
@ -53,8 +52,6 @@ exports.run = async (client, interaction) => {
await interaction.editReply({ content: 'Use the menu below to choose a Project', components: [row] });
})()
// await interaction.reply({ content: 'Pong!', components: [row] });
client.on('interactionCreate', interaction => {
if (!interaction.isSelectMenu()) return;
@ -94,41 +91,27 @@ exports.run = async (client, interaction) => {
{ name: 'Project ID', value: data.project_id, inline: true },
{ name: 'Description', value: desc },
{ name: 'Task Info', value: columns.join(" "), inline: true },
{ name: 'link', value: "https://" + process.env.ROOT_DOMAIN + "/board/" + data.project_id, inline: true }
)
{ name: 'link', value: "https://" + process.env.ROOT_DOMAIN + "/board/" + data.project_id, inline: true })
.setTitle('Requested Details')
.setDescription("Position " + data.position)
// .setThumbnail("https://wiki.codingvm.codes/paomedia-small-n-flat-terminal.ico")
.setFooter(date.format(now, 'MM/DD/YYYY hh:mm:ss'));
(async () => {
await interaction.editReply({ embeds: [mainEmbed] });
})();
})
})();
}
})
})
}
// Clear the list
boardList = [];
columns = [];
desc = "";
})();
})
})();
}
})
})
}
exports.commandData = {