refactor(commands/administration): linting the collector of join's command
This commit is contained in:
parent
fdc78a69dd
commit
e6498ac804
1 changed files with 102 additions and 103 deletions
|
|
@ -209,7 +209,8 @@ export default {
|
||||||
});
|
});
|
||||||
collector.on(
|
collector.on(
|
||||||
'collect',
|
'collect',
|
||||||
async (selectInteraction: StringSelectMenuInteraction) => {
|
(selectInteraction: StringSelectMenuInteraction) => {
|
||||||
|
void (async () => {
|
||||||
if (selectInteraction.user.id !== interaction.user.id) {
|
if (selectInteraction.user.id !== interaction.user.id) {
|
||||||
void selectInteraction.reply({
|
void selectInteraction.reply({
|
||||||
content: `${emoji.answer.no} | You cannot use this selector !`,
|
content: `${emoji.answer.no} | You cannot use this selector !`,
|
||||||
|
|
@ -300,12 +301,10 @@ export default {
|
||||||
.join('\n');
|
.join('\n');
|
||||||
const autoConfig = new EmbedBuilder()
|
const autoConfig = new EmbedBuilder()
|
||||||
.setTitle('The logs category is created')
|
.setTitle('The logs category is created')
|
||||||
.setDescription(
|
.setDescription(`
|
||||||
`
|
|
||||||
This following roles will have access to the logs.
|
This following roles will have access to the logs.
|
||||||
${mentionList}
|
${mentionList}
|
||||||
`,
|
`)
|
||||||
)
|
|
||||||
.setColor(guildData.color)
|
.setColor(guildData.color)
|
||||||
.setFooter({
|
.setFooter({
|
||||||
text: guildData.footer,
|
text: guildData.footer,
|
||||||
|
|
@ -314,7 +313,7 @@ export default {
|
||||||
embeds: [autoConfig],
|
embeds: [autoConfig],
|
||||||
components: [],
|
components: [],
|
||||||
});
|
});
|
||||||
return;
|
})();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue