refactor(commands/administration): linting the collector of join's command

This commit is contained in:
Raphael 2025-11-23 13:04:08 +01:00 committed by Raphaël
parent fdc78a69dd
commit e6498ac804

View file

@ -209,7 +209,8 @@ export default {
});
collector.on(
'collect',
async (selectInteraction: StringSelectMenuInteraction) => {
(selectInteraction: StringSelectMenuInteraction) => {
void (async () => {
if (selectInteraction.user.id !== interaction.user.id) {
void selectInteraction.reply({
content: `${emoji.answer.no} | You cannot use this selector !`,
@ -300,12 +301,10 @@ export default {
.join('\n');
const autoConfig = new EmbedBuilder()
.setTitle('The logs category is created')
.setDescription(
`
.setDescription(`
This following roles will have access to the logs.
${mentionList}
`,
)
`)
.setColor(guildData.color)
.setFooter({
text: guildData.footer,
@ -314,7 +313,7 @@ export default {
embeds: [autoConfig],
components: [],
});
return;
})();
},
);
break;