Class VoiceChannelEffect

java.lang.Object
net.dv8tion.jda.api.entities.channel.VoiceChannelEffect

public class VoiceChannelEffect extends Object
Represents an emoji effect or a soundboard sound effect.
  • Constructor Details

  • Method Details

    • getChannel

      @Nonnull public VoiceChannel getChannel()
      The voice channel this effect was sent to.
      Returns:
      The voice channel this effect was sent to.
    • getUserId

      @Nonnull public String getUserId()
      The ID of the user which sent this effect.
      Returns:
      ID of the user which sent this effect.
    • getUserIdLong

      public long getUserIdLong()
      The user which sent this effect.
      Returns:
      ID of the user which sent this effect.
    • getUser

      @Nullable public User getUser()
      The user which sent this effect.
      This may be null if the user is not cached.
      Returns:
      The user which sent this effect, or null.
    • getMember

      @Nullable public Member getMember()
      The member which sent this effect.
      This may be null if the member is not cached.
      Returns:
      The member which sent this effect, or null.
    • getEmoji

      @Nullable public EmojiUnion getEmoji()
      The emoji sent with the effect, this is present for both emoji and soundboard sound effects.
      Returns:
      The emoji sent with the effect, or null
    • getAnimation

      @Nullable public VoiceChannelEffect.Animation getAnimation()
      The animation of the emoji, this is present for both emoji and soundboard sound effects.
      Returns:
      The animation of the emoji, or null
    • getSoundboardSound

      @Nullable public SoundboardSound getSoundboardSound()
      The soundboard sound sent with the effect, this is only present for soundboard sound effects.
      Returns:
      The soundboard sound sent with the effect, or null
    • getSoundVolume

      public double getSoundVolume()
      The volume at which a soundboard sound was sent, this is 0 if this isn't a soundboard sound effect.
      Returns:
      The soundboard sound's volume, or 0