Class AudioPlayEvent.Builder

Enclosing class:
AudioPlayEvent

  • Method Details

    • streamUrl

      Source URL of the audio to play.
      Parameters:
      streamUrl - The stream URL as a string.
      Returns:
      This builder.
    • streamUrl

      public AudioPlayEvent.Builder streamUrl(URI streamUrl)
      Source URL of the audio to play.
      Parameters:
      streamUrl - The stream URL.
      Returns:
      This builder.
    • build

      Description copied from class: Event.Builder
      Builds the EventWithBody.
      Specified by:
      build in class Event.Builder<AudioPlayEvent,AudioPlayEvent.Builder>
      Returns:
      An instance of Event, populated with all fields from this builder.
    • queue

      public AudioPlayEvent.Builder queue(boolean queue)
      Whether to queue the audio.
      Parameters:
      queue - true to enable queuing, false otherwise.
      Returns:
      This builder.
    • level

      public AudioPlayEvent.Builder level(double level)
      Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.
      Parameters:
      level - The volume as a double.
      Returns:
      This builder.
    • loop

      public AudioPlayEvent.Builder loop(int loop)
      Number of times to repeat the audio. Default is 1.
      Parameters:
      loop - The loop count as an int.
      Returns:
      This builder.