Skip to content

Commit

Permalink
style: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinaël Devresse committed Oct 25, 2024
1 parent b9e60db commit f98b62a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/datadrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,10 @@ export class DatadropClient extends Client {
interaction.message.channel.id,
);

this.logger.info(
`Le membre <${member.user.tag}> a atteint la limite de rôles${channel ? ' dans <' + channel.name + '>' : ""}! (${nbRoles}/${maxRoles})`,
);
let message = `Le membre <${member.user.tag}> a atteint la limite de rôles`;
if (channel) message += ` dans <${channel.name}>`;
message += `! (${nbRoles}/${maxRoles})`;
this.logger.info(message);
await interaction.editReply(
`Tu ne peux pas t'assigner plus de ${maxRoles} rôle${maxRoles > 1 ? "s" : ""} dans ce canal! Tu en as déjà ${nbRoles} d'assigné${nbRoles > 1 ? "s" : ""}`,
);
Expand Down

0 comments on commit f98b62a

Please sign in to comment.