Class AudioPlayEvent

All Implemented Interfaces:
Jsonable

public final class AudioPlayEvent extends Event
Represents an EventType.AUDIO_PLAY event.
  • Method Details

    • getPlayId

      public UUID getPlayId()
      Unique audio play identifier.
      Returns:
      The play ID, or null if unknown.
    • getStreamUrl

      public URI getStreamUrl()
      Source URL of the audio to play.
      Returns:
      The stream URL, or null if unspecified.
    • builder

      Entry point for constructing an instance of this class.
      Returns:
      A new Builder.
    • getQueue

      public Boolean getQueue()
      Whether to queue the audio.
      Returns:
      true if queuing is enabled, or null if unspecified.
    • getLevel

      public Double getLevel()
      Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.
      Returns:
      The volume as a Double, or null if unspecified.
    • getLoop

      public Integer getLoop()
      Number of times to repeat the audio.
      Returns:
      The loop count as an Integer, or null if unspecified.