Skip to content

Commit dcb241c

Browse files
committed
fix(handle-permissions): remove unnecessary check
This removes the permission check for the bot to have the `MANAGE_ROLES` permission in order to execute the command.
1 parent a42a428 commit dcb241c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

application/src/main/java/org/togetherjava/tjbot/features/roleapplication/ApplicationCreateCommand.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,6 @@ private boolean handleHasPermissions(SlashCommandInteractionEvent event) {
234234
return false;
235235
}
236236

237-
Member selfMember = guild.getSelfMember();
238-
if (!selfMember.hasPermission(Permission.MANAGE_ROLES)) {
239-
event.reply(
240-
"Sorry, but I was not set up correctly. I need the manage role permissions for this.")
241-
.setEphemeral(true)
242-
.queue();
243-
logger.error("The bot requires the manage role permissions for /{}.", getName());
244-
return false;
245-
}
246-
247237
return true;
248238
}
249239

0 commit comments

Comments
 (0)