Class GenericGuildVoiceEvent

All Implemented Interfaces:
GenericEvent
Direct Known Subclasses:
GenericGuildVoiceUpdateEvent, GuildVoiceDeafenEvent, GuildVoiceGuildDeafenEvent, GuildVoiceGuildMuteEvent, GuildVoiceMuteEvent, GuildVoiceRequestToSpeakEvent, GuildVoiceSelfDeafenEvent, GuildVoiceSelfMuteEvent, GuildVoiceStreamEvent, GuildVoiceSuppressEvent, GuildVoiceVideoEvent

public abstract class GenericGuildVoiceEvent extends GenericGuildEvent
Indicates that a 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.