Enum Class VoiceConnectionStatus

java.lang.Object
java.lang.Enum<VoiceConnectionStatus>
group.worldstandard.pudel.api.audio.VoiceConnectionStatus
All Implemented Interfaces:
Serializable, Comparable<VoiceConnectionStatus>, Constable

public enum VoiceConnectionStatus extends Enum<VoiceConnectionStatus>
Represents the status of a voice connection.
  • Enum Constant Details

    • DISCONNECTED

      public static final VoiceConnectionStatus DISCONNECTED
      Not connected to any voice channel.
    • CONNECTING

      public static final VoiceConnectionStatus CONNECTING
      Currently connecting to a voice channel.
    • CONNECTED

      public static final VoiceConnectionStatus CONNECTED
      Connected to a voice channel and ready.
    • CONNECTED_NO_AUDIO

      public static final VoiceConnectionStatus CONNECTED_NO_AUDIO
      Connected but audio is not being sent/received.
    • DAVE_REQUIRED

      public static final VoiceConnectionStatus DAVE_REQUIRED
      Connection failed due to missing DAVE implementation.
    • DAVE_ERROR

      public static final VoiceConnectionStatus DAVE_ERROR
      Connection failed due to DAVE initialization error.
    • NO_PERMISSION

      public static final VoiceConnectionStatus NO_PERMISSION
      Connection failed due to permissions.
    • ALREADY_CONNECTED

      public static final VoiceConnectionStatus ALREADY_CONNECTED
      Already connected to a voice channel.
    • ERROR

      public static final VoiceConnectionStatus ERROR
      Connection failed due to unknown error.
  • Method Details

    • values

      public static VoiceConnectionStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VoiceConnectionStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null