com.github.princesslana.eriscasper.data.resource.Invite Maven / Gradle / Ivy
The newest version!
package com.github.princesslana.eriscasper.data.resource;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.github.princesslana.eriscasper.data.Snowflake;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.immutables.value.Value;
@Value.Immutable
@JsonDeserialize(as=ImmutableInvite.class)
public interface Invite {
/**
* the invite code (unique ID)
*/
@JsonProperty("code")
String getCode();
/**
* the guild this invite is for
*/
@JsonProperty("guild")
Guild getGuild();
/**
* the channel this invite is for
*/
@JsonProperty("channel")
Channel getChannel();
/**
* approximate count of online members
*/
@JsonProperty("approximate_presence_count")
java.util.Optional getApproximatePresenceCount();
/**
* approximate count of total members
*/
@JsonProperty("approximate_member_count")
java.util.Optional getApproximateMemberCount();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy