Class GuildVoiceStreamEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceEvent
net.dv8tion.jda.api.events.guild.voice.GuildVoiceStreamEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a
Member
started or ended a stream.
Can be used to detect when a user goes live or stops streaming.
Requirements
This event requires the VOICE_STATE
CacheFlag to be enabled, which requires
the GUILD_VOICE_STATES
intent.
createLight(String)
disables that CacheFlag by default!
-
Constructor Summary
ConstructorsConstructorDescriptionGuildVoiceStreamEvent
(JDA api, long responseNumber, Member member, boolean stream) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceEvent
getMember, getVoiceState
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildVoiceStreamEvent
-
-
Method Details
-
isStream
public boolean isStream()True if this user started streaming. False if the user stopped streaming.- Returns:
- True, if the stream started
-