GuildService extends RestService { public Mono<NicknameModifyData> modifyOwnNickname(long guildId, NicknameModifyData request) { return Routes.NICKNAME_MODIFY_OWN.newRequest(guildId) .body(request) .exchange(getRouter()) .bodyToMono(NicknameModifyData.class); } GuildService(Router router); Mono<GuildUpdateData> createGuild(GuildCreateRequest request); Mono<GuildUpdateData> getGuild(long guildId); Mono<GuildUpdateData> modifyGuild(long guildId, GuildModifyRequest request, @Nullable String reason); Mono<Void> deleteGuild(long guildId); Flux<ChannelData> getGuildChannels(long guildId); Mono<ChannelData> createGuildChannel(long guildId, ChannelCreateRequest request, @Nullable String reason); Flux<RoleData> modifyGuildChannelPositions(long guildId, PositionModifyRequest[] request); Mono<MemberData> getGuildMember(long guildId, long userId); Flux<MemberData> getGuildMembers(long guildId, Map<String, Object> queryParams); Mono<MemberData> addGuildMember(long guildId, long userId, GuildMemberAddRequest request); Mono<MemberData> modifyGuildMember(long guildId, long userId, GuildMemberModifyRequest request, @Nullable String reason); Mono<NicknameModifyData> modifyOwnNickname(long guildId, NicknameModifyData request); Mono<Void> addGuildMemberRole(long guildId, long userId, long roleId, @Nullable String reason); Mono<Void> removeGuildMemberRole(long guildId, long userId, long roleId, @Nullable String reason); Mono<Void> removeGuildMember(long guildId, long userId, @Nullable String reason); Flux<BanData> getGuildBans(long guildId); Mono<BanData> getGuildBan(long guildId, long userId); Mono<Void> createGuildBan(long guildId, long userId, Map<String, Object> queryParams, @Nullable String reason); Mono<Void> removeGuildBan(long guildId, long userId, @Nullable String reason); Flux<RoleData> getGuildRoles(long guildId); Mono<RoleData> createGuildRole(long guildId, RoleCreateRequest request, @Nullable String reason); Flux<RoleData> modifyGuildRolePositions(long guildId, PositionModifyRequest[] request); Mono<RoleData> modifyGuildRole(long guildId, long roleId, RoleModifyRequest request, @Nullable String reason); Mono<Void> deleteGuildRole(long guildId, long roleId, @Nullable String reason); @Deprecated Mono<PruneData> getGuildPruneCount(long guildId, Map<String, Object> queryParams); Mono<PruneData> getGuildPruneCount(long guildId, Multimap<String, Object> params); @Deprecated Mono<PruneData> beginGuildPrune(long guildId, Map<String, Object> queryParams, @Nullable String reason); Mono<PruneData> beginGuildPrune(long guildId, Multimap<String, Object> params, @Nullable String reason); Flux<RegionData> getGuildVoiceRegions(long guildId); Flux<InviteData> getGuildInvites(long guildId); Flux<IntegrationData> getGuildIntegrations(long guildId); Mono<Void> createGuildIntegration(long guildId, IntegrationCreateRequest request); Mono<Void> modifyGuildIntegration(long guildId, long integrationId, IntegrationModifyRequest request); Mono<Void> deleteGuildIntegration(long guildId, long integrationId); Mono<Void> syncGuildIntegration(long guildId, long integrationId); Mono<GuildWidgetData> getGuildWidget(long guildId); Mono<GuildWidgetData> modifyGuildWidget(long guildId, GuildWidgetModifyRequest request);  }
@Test public void testModifyOwnNickname() { NicknameModifyData req = NicknameModifyData.builder().nick("nickname").build(); guildService.modifyOwnNickname(guild, req).block(); }