/** * Creates a new RoleManager instance * * @param role * {@link net.dv8tion.jda.core.entities.Role Role} that should be modified */ public RoleManager(Role role) { super(role.getJDA(), Route.Roles.MODIFY_ROLE.compile(role.getGuild().getId(), role.getId())); this.role = new UpstreamReference<>(role); if (isPermissionChecksEnabled()) checkPermissions(); }