All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.princesslana.eriscasper.data.resource.VoiceState 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=ImmutableVoiceState.class)
public interface VoiceState {
  /**
    * the guild id this voice state is for
    */
  @JsonProperty("guild_id")
  java.util.Optional getGuildId();

  /**
    * the channel id this user is connected to
    */
  @JsonProperty("channel_id")
  com.github.princesslana.eriscasper.data.util.Nullable getChannelId();

  /**
    * the user id this voice state is for
    */
  @JsonProperty("user_id")
  Snowflake getUserId();

  /**
    * the session id for this voice state
    */
  @JsonProperty("session_id")
  String getSessionId();

  /**
    * whether this user is deafened by the server
    */
  @JsonProperty("deaf")
  Boolean isDeaf();

  /**
    * whether this user is muted by the server
    */
  @JsonProperty("mute")
  Boolean isMute();

  /**
    * whether this user is locally deafened
    */
  @JsonProperty("self_deaf")
  Boolean isSelfDeaf();

  /**
    * whether this user is locally muted
    */
  @JsonProperty("self_mute")
  Boolean isSelfMute();

  /**
    * whether this user is muted by the current user
    */
  @JsonProperty("suppress")
  Boolean isSuppress();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy