Class GenericGuildVoiceEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericGuildVoiceUpdateEvent
,GuildVoiceDeafenEvent
,GuildVoiceGuildDeafenEvent
,GuildVoiceGuildMuteEvent
,GuildVoiceMuteEvent
,GuildVoiceRequestToSpeakEvent
,GuildVoiceSelfDeafenEvent
,GuildVoiceSelfMuteEvent
,GuildVoiceStreamEvent
,GuildVoiceSuppressEvent
,GuildVoiceVideoEvent
Indicates that a
Every GuildVoiceEvent is an instance of this event and can be casted.
Guild
voice event is fired.
Every GuildVoiceEvent is an instance of this event and can be casted.
Can be used to detect any GuildVoiceEvent.
Requirements
These events require the VOICE_STATE
CacheFlag to be enabled, which requires
the GUILD_VOICE_STATES
intent.
createLight(String)
disables that CacheFlag by default!
Additionally, these events require the MemberCachePolicy
to cache the updated members. Discord does not specifically tell us about the updates, but merely tells us the
member was updated and gives us the updated member object. In order to fire specific events like these we
need to have the old member cached to compare against.
-
Constructor Summary
-
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Constructor Details
-
GenericGuildVoiceEvent
-
-
Method Details
-
getMember
The affectedMember
- Returns:
- The affected Member
-
getVoiceState
- Returns:
- The
GuildVoiceState
of the member
-