@Test
public void shouldRequireGuildPresencesIntentsIfRequestingEntireMemberListAndUsingIntents() {

    ValidationUtil.validateRequestGuildMembers(
        RequestGuildMembers.builder().guildId("1234").query("").limit(0).build(),
        Possible.absent()
    );
    ValidationUtil.validateRequestGuildMembers(
        RequestGuildMembers.builder().guildId("1234").query("prefix").limit(0).build(),
        Possible.of(IntentSet.none())
    );
    ValidationUtil.validateRequestGuildMembers(
        RequestGuildMembers.builder().guildId("1234").query("").limit(100).build(),
        Possible.of(IntentSet.none())
    );
    assertThrows(IllegalArgumentException.class, () -> ValidationUtil.validateRequestGuildMembers(
        RequestGuildMembers.builder().guildId("1234").query("").limit(0).build(),
        Possible.of(IntentSet.none())
    ));
}