discord4j.discordjson.json.gateway.GuildMembersChunk Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discord-json Show documentation
Show all versions of discord-json Show documentation
Discord entity domain as immutable Jackson objects
package discord4j.discordjson.json.gateway;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.json.MemberData;
import discord4j.discordjson.Id;
import discord4j.discordjson.json.PresenceData;
import discord4j.discordjson.possible.Possible;
import org.immutables.value.Value;
import java.util.List;
@Value.Immutable
@JsonSerialize(as = ImmutableGuildMembersChunk.class)
@JsonDeserialize(as = ImmutableGuildMembersChunk.class)
public interface GuildMembersChunk extends Dispatch {
static ImmutableGuildMembersChunk.Builder builder() {
return ImmutableGuildMembersChunk.builder();
}
@JsonProperty("guild_id")
Id guildId();
List members();
@JsonProperty("chunk_index")
int chunkIndex();
@JsonProperty("chunk_count")
int chunkCount();
@JsonProperty("not_found")
Possible> notFound();
Possible> presences();
Possible nonce();
}