From 2dbeab58aa5e6dda066b01bb77e548f57515f984 Mon Sep 17 00:00:00 2001 From: Dylan Warren Date: Sat, 25 May 2024 22:04:10 -0500 Subject: [PATCH] chore: fix wording for button reactions --- src/services/buttonHandler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/buttonHandler.ts b/src/services/buttonHandler.ts index 0d1d1f2..5f4da7a 100644 --- a/src/services/buttonHandler.ts +++ b/src/services/buttonHandler.ts @@ -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 : '.'}`, ); }; }