discord4j.discordjson.json.ResolvedMemberData 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;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.possible.Possible;
import org.immutables.value.Value;
import java.util.List;
import java.util.Optional;
@Value.Immutable
@JsonSerialize(as = ImmutableResolvedMemberData.class)
@JsonDeserialize(as = ImmutableResolvedMemberData.class)
public interface ResolvedMemberData {
static ImmutableResolvedMemberData.Builder builder() {
return ImmutableResolvedMemberData.builder();
}
Possible> nick();
List roles();
@JsonProperty("joined_at")
String joinedAt();
@JsonProperty("premium_since")
Possible> premiumSince();
Possible pending();
/** total permissions of the member in the channel, including overrides, returned when in the interaction object. */
Possible permissions();
@JsonProperty("communication_disabled_until")
Possible> communicationDisabledUntil();
default long flags() {
return 0L;
}
}