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(
|
||||
'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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue