EmojiService extends RestService { public Flux<EmojiData> getGuildEmojis(long guildId) { return Routes.GUILD_EMOJIS_GET.newRequest(guildId) .exchange(getRouter()) .bodyToMono(EmojiData[].class) .flatMapMany(Flux::fromArray); } EmojiService(Router router); Flux<EmojiData> getGuildEmojis(long guildId); Mono<EmojiData> getGuildEmoji(long guildId, long emojiId); Mono<EmojiData> createGuildEmoji(long guildId, GuildEmojiCreateRequest request, @Nullable String reason); Mono<EmojiData> modifyGuildEmoji(long guildId, long emojiId, GuildEmojiModifyRequest request, @Nullable String reason); Mono<Void> deleteGuildEmoji(long guildId, long emojiId, @Nullable String reason);  }
@Test public void testGetGuildEmojis() { emojiService.getGuildEmojis(guild).then().block(); }