Skip to content

Commit

Permalink
chore: fix wording for button reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhuh committed May 26, 2024
1 parent e74f136 commit 2dbeab5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/buttonHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,13 @@ export class ButtonHandler {
)}. Do I the manage roles permission?`,
);
});

const removedRoles = ` and removed ${rolesToRemove.map((r) => RolePing(r.id)).join(' ')}`;

return interaction.editReply(
`Hey! I gave you the ${RolePing(
role.roleId,
)} role and removed ${rolesToRemove.map((r) => RolePing(r.id)).join(' ')}`,
)} role${ rolesToRemove.size ? removedRoles : '.'}`,
);
};
}

0 comments on commit 2dbeab5

Please sign in to comment.