Class WidgetImpl.VoiceStateImpl
java.lang.Object
net.dv8tion.jda.internal.entities.WidgetImpl.VoiceStateImpl
- All Implemented Interfaces:
Widget.VoiceState
- Enclosing class:
WidgetImpl
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the channel the member is inGets theMember
to which this VoiceState belongsint
hashCode()
boolean
Used to determine if the member is currently in a voice channel.boolean
Whether the member is deafened, either by an admin or self-deafenedboolean
Whether the member is deafened by an adminboolean
Whether the member is muted by an adminboolean
isMuted()
Whether the member is muted, either by an admin or self-mutedboolean
Whether the member is self-deafenedboolean
Whether the member is self-mutedboolean
Whether the member is suppressedtoString()
-
Method Details
-
getChannel
Description copied from interface:Widget.VoiceState
Gets the channel the member is in- Specified by:
getChannel
in interfaceWidget.VoiceState
- Returns:
- never-null VoiceChannel
-
inVoiceChannel
public boolean inVoiceChannel()Description copied from interface:Widget.VoiceState
Used to determine if the member is currently in a voice channel.
If this is false, getChannel() will return null- Specified by:
inVoiceChannel
in interfaceWidget.VoiceState
- Returns:
- True, if the member is in a voice channel
-
isGuildMuted
public boolean isGuildMuted()Description copied from interface:Widget.VoiceState
Whether the member is muted by an admin- Specified by:
isGuildMuted
in interfaceWidget.VoiceState
- Returns:
- True, if the member is muted
-
isGuildDeafened
public boolean isGuildDeafened()Description copied from interface:Widget.VoiceState
Whether the member is deafened by an admin- Specified by:
isGuildDeafened
in interfaceWidget.VoiceState
- Returns:
- True, if the member is deafened
-
isSuppressed
public boolean isSuppressed()Description copied from interface:Widget.VoiceState
Whether the member is suppressed- Specified by:
isSuppressed
in interfaceWidget.VoiceState
- Returns:
- True, if the member is suppressed
-
isSelfMuted
public boolean isSelfMuted()Description copied from interface:Widget.VoiceState
Whether the member is self-muted- Specified by:
isSelfMuted
in interfaceWidget.VoiceState
- Returns:
- True, if the member is self-muted
-
isSelfDeafened
public boolean isSelfDeafened()Description copied from interface:Widget.VoiceState
Whether the member is self-deafened- Specified by:
isSelfDeafened
in interfaceWidget.VoiceState
- Returns:
- True, if the member is self-deafened
-
isMuted
public boolean isMuted()Description copied from interface:Widget.VoiceState
Whether the member is muted, either by an admin or self-muted- Specified by:
isMuted
in interfaceWidget.VoiceState
- Returns:
- True, if the member is self-muted or guild-muted
-
isDeafened
public boolean isDeafened()Description copied from interface:Widget.VoiceState
Whether the member is deafened, either by an admin or self-deafened- Specified by:
isDeafened
in interfaceWidget.VoiceState
- Returns:
- True, if the member is self-deafened or guild-deafened
-
getMember
Description copied from interface:Widget.VoiceState
Gets theMember
to which this VoiceState belongs- Specified by:
getMember
in interfaceWidget.VoiceState
- Returns:
- the member
-
getWidget
Description copied from interface:Widget.VoiceState
- Specified by:
getWidget
in interfaceWidget.VoiceState
- Returns:
- the widget
-
hashCode
public int hashCode() -
equals
-
toString
-