We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cc48a7 commit 1c5f037Copy full SHA for 1c5f037
1 file changed
src/v2/commands/repel/index.ts
@@ -120,6 +120,15 @@ export const repelInteraction: CommandDataWithHandler = {
120
return;
121
}
122
123
+
124
+ if (targetMember.roles.cache.has(repelRole.id)) {
125
+ await reply(
126
+ interaction,
127
+ `You cannot repel a user with the ${REPEL_ROLE_NAME} role.`,
128
+ );
129
+ return;
130
+ }
131
132
const botMember = await interaction.guild.members.fetch(client.user!.id);
133
const isOwner = interaction.guild.ownerId === member.id;
134
0 commit comments