Class GuildVoiceMuteEvent
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.GuildVoiceMuteEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a
Combines
Member
was (un-)muted.
Combines
GuildVoiceGuildMuteEvent
and GuildVoiceSelfMuteEvent
!
Can be used to detect when a member is muted or un-muted.
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
Constructors -
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
-
GuildVoiceMuteEvent
-
-
Method Details
-
isMuted
public boolean isMuted()Whether the member was muted in this event.- Returns:
- True, if the member was muted with this event
False, if the member was un-muted in this event
-