Skip to content

Commit 2dbeab5

Browse files
committedMay 26, 2024
chore: fix wording for button reactions
1 parent e74f136 commit 2dbeab5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/services/buttonHandler.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,13 @@ export class ButtonHandler {
178178
)}. Do I the manage roles permission?`,
179179
);
180180
});
181+
182+
const removedRoles = ` and removed ${rolesToRemove.map((r) => RolePing(r.id)).join(' ')}`;
181183

182184
return interaction.editReply(
183185
`Hey! I gave you the ${RolePing(
184186
role.roleId,
185-
)} role and removed ${rolesToRemove.map((r) => RolePing(r.id)).join(' ')}`,
187+
)} role${ rolesToRemove.size ? removedRoles : '.'}`,
186188
);
187189
};
188190
}

0 commit comments

Comments
 (0)