We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a28765 commit 2eb4e78Copy full SHA for 2eb4e78
1 file changed
src/main/java/technobot/commands/staff/RoleCommand.java
@@ -44,7 +44,7 @@ public void execute(SlashCommandInteractionEvent event) {
44
45
// Check that bot has necessary permissions
46
Role botRole = event.getGuild().getBotRole();
47
- if (!UtilityMethods.hasPermission(botRole, this.permission)) {
+ if (!UtilityMethods.hasPermission(botRole, this.permission) || role.isManaged()) {
48
event.replyEmbeds(EmbedUtils.createError("I couldn't change the roles for that user. Please check my permissions and role position.")).queue();
49
return;
50
}
0 commit comments