Bug gix to reset boardList and columns arrays and beauty
This commit is contained in:
parent
2f50fdf0fd
commit
0749dba48e
@ -18,7 +18,6 @@ require("dotenv").config();
|
|||||||
// Grab RUN - get Client, interaction from the bot
|
// Grab RUN - get Client, interaction from the bot
|
||||||
exports.run = async (client, interaction) => {
|
exports.run = async (client, interaction) => {
|
||||||
|
|
||||||
|
|
||||||
// eslint-disable-line no-unused-vars
|
// eslint-disable-line no-unused-vars
|
||||||
// Defer to aloow for embed building
|
// Defer to aloow for embed building
|
||||||
await interaction.deferReply();
|
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.editReply({ content: 'Use the menu below to choose a Project', components: [row] });
|
||||||
})()
|
})()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// await interaction.reply({ content: 'Pong!', components: [row] });
|
// await interaction.reply({ content: 'Pong!', components: [row] });
|
||||||
client.on('interactionCreate', interaction => {
|
client.on('interactionCreate', interaction => {
|
||||||
if (!interaction.isSelectMenu()) return;
|
if (!interaction.isSelectMenu()) return;
|
||||||
@ -94,41 +91,27 @@ exports.run = async (client, interaction) => {
|
|||||||
{ name: 'Project ID', value: data.project_id, inline: true },
|
{ name: 'Project ID', value: data.project_id, inline: true },
|
||||||
{ name: 'Description', value: desc },
|
{ name: 'Description', value: desc },
|
||||||
{ name: 'Task Info', value: columns.join(" "), inline: true },
|
{ 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')
|
.setTitle('Requested Details')
|
||||||
.setDescription("Position " + data.position)
|
.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'));
|
.setFooter(date.format(now, 'MM/DD/YYYY hh:mm:ss'));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await interaction.editReply({ embeds: [mainEmbed] });
|
await interaction.editReply({ embeds: [mainEmbed] });
|
||||||
})();
|
|
||||||
|
|
||||||
})
|
|
||||||
})();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Clear the list
|
// Clear the list
|
||||||
boardList = [];
|
boardList = [];
|
||||||
|
columns = [];
|
||||||
desc = "";
|
desc = "";
|
||||||
|
})();
|
||||||
|
})
|
||||||
|
})();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
exports.commandData = {
|
exports.commandData = {
|
||||||
|
Loading…
Reference in New Issue
Block a user