mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-18 04:50:38 +00:00
[AB-271] fixing tests
This commit is contained in:
@@ -43,7 +43,7 @@ public class UnSetExpRole extends AbstractConditionableCommand {
|
||||
public CompletableFuture<CommandResult> executeAsync(CommandContext commandContext) {
|
||||
ARole role = (ARole) commandContext.getParameters().getParameters().get(0);
|
||||
ARole actualRole = roleManagementService.findRole(role.getId());
|
||||
if(!role.getServer().getId().equals(commandContext.getGuild().getIdLong())) {
|
||||
if(!actualRole.getServer().getId().equals(commandContext.getGuild().getIdLong())) {
|
||||
throw new EntityGuildMismatchException();
|
||||
}
|
||||
// do not check for the existence of the role, because if the role was deleted, users should be able
|
||||
|
||||
Reference in New Issue
Block a user