Class VoiceChannelEffect
java.lang.Object
net.dv8tion.jda.api.entities.channel.VoiceChannelEffect
Represents an emoji effect or a soundboard sound effect.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the animation of a voice channel effect. -
Constructor Summary
ConstructorsConstructorDescriptionVoiceChannelEffect(VoiceChannel channel, long userId, EmojiUnion emoji, VoiceChannelEffect.Animation animation, SoundboardSound soundboardSound, double soundVolume) -
Method Summary
Modifier and TypeMethodDescriptionThe animation of the emoji, this is present for both emoji and soundboard sound effects.The voice channel this effect was sent to.getEmoji()The emoji sent with the effect, this is present for both emoji and soundboard sound effects.The member which sent this effect.The soundboard sound sent with the effect, this is only present for soundboard sound effects.doubleThe volume at which a soundboard sound was sent, this is0if this isn't a soundboard sound effect.getUser()The user which sent this effect.The ID of the user which sent this effect.longThe user which sent this effect.
-
Constructor Details
-
VoiceChannelEffect
public VoiceChannelEffect(VoiceChannel channel, long userId, EmojiUnion emoji, VoiceChannelEffect.Animation animation, SoundboardSound soundboardSound, double soundVolume)
-
-
Method Details
-
getChannel
The voice channel this effect was sent to.- Returns:
- The voice channel this effect was sent to.
-
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
-
getMember
-
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
The animation of the emoji, this is present for both emoji and soundboard sound effects.- Returns:
- The animation of the emoji, or
null
-
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 is0if this isn't a soundboard sound effect.- Returns:
- The soundboard sound's volume, or
0
-