Package net.dv8tion.jda.api.utils
Class WidgetUtil.Widget.VoiceState
- java.lang.Object
-
- net.dv8tion.jda.api.utils.WidgetUtil.Widget.VoiceState
-
- Enclosing class:
- WidgetUtil.Widget
public static class WidgetUtil.Widget.VoiceState extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
WidgetUtil.Widget.VoiceChannel
getChannel()
Gets the channel the member is inWidgetUtil.Widget.Member
getMember()
WidgetUtil.Widget
getWidget()
int
hashCode()
boolean
inVoiceChannel()
Used to determine if the member is currently in a voice channel.boolean
isDeafened()
Whether the member is deafened, either by an admin or self-deafenedboolean
isGuildDeafened()
Whether the member is deafened by an adminboolean
isGuildMuted()
Whether the member is muted by an adminboolean
isMuted()
Whether the member is muted, either by an admin or self-mutedboolean
isSelfDeafened()
Whether the member is self-deafenedboolean
isSelfMuted()
Whether the member is self-mutedboolean
isSuppressed()
Whether the member is suppressedjava.lang.String
toString()
-
-
-
Method Detail
-
getChannel
@Nullable public WidgetUtil.Widget.VoiceChannel getChannel()
Gets the channel the member is in- Returns:
- never-null VoiceChannel
-
inVoiceChannel
public boolean inVoiceChannel()
Used to determine if the member is currently in a voice channel.
If this is false, getChannel() will return null- Returns:
- True, if the member is in a voice channel
-
isGuildMuted
public boolean isGuildMuted()
Whether the member is muted by an admin- Returns:
- True, if the member is muted
-
isGuildDeafened
public boolean isGuildDeafened()
Whether the member is deafened by an admin- Returns:
- True, if the member is deafened
-
isSuppressed
public boolean isSuppressed()
Whether the member is suppressed- Returns:
- True, if the member is suppressed
-
isSelfMuted
public boolean isSelfMuted()
Whether the member is self-muted- Returns:
- True, if the member is self-muted
-
isSelfDeafened
public boolean isSelfDeafened()
Whether the member is self-deafened- Returns:
- True, if the member is self-deafened
-
isMuted
public boolean isMuted()
Whether the member is muted, either by an admin or self-muted- Returns:
- True, if the member is self-muted or guild-muted
-
isDeafened
public boolean isDeafened()
Whether the member is deafened, either by an admin or self-deafened- Returns:
- True, if the member is self-deafened or guild-deafened
-
getMember
@Nonnull public WidgetUtil.Widget.Member getMember()
-
getWidget
@Nonnull public WidgetUtil.Widget getWidget()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-