public class VoiceStatusImpl extends java.lang.Object implements VoiceStatus
| Constructor and Description |
|---|
VoiceStatusImpl(User user,
Guild guild) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
VoiceChannel |
getChannel()
Returns the current
VoiceChannel of the User
If the User is currently not in a VoiceChannel, this returns null |
Guild |
getGuild()
Returns the current
Guild of the User's VoiceChannel
If the User is currently not in a VoiceChannel, this returns null |
java.lang.String |
getSessionId() |
User |
getUser()
Returns the
User corresponding to this VoiceStatus Object
(Backreference) |
int |
hashCode() |
boolean |
inVoiceChannel()
Used to determine if the
User is currently in a VoiceChannel
in the Guild returned from getGuild().If this is false, getChannel() will return null. |
boolean |
isDeaf()
Returns whether the
User deafened himself |
boolean |
isMuted()
Returns whether the
User muted himself |
boolean |
isServerDeaf()
Returns whether the
User got deafened by an Admin (server side) |
boolean |
isServerMuted()
Returns whether the
User got muted by an Admin (server side) |
boolean |
isSuppressed()
Returns true if this
User is unable to speak because the
channel is actively suppressing audio communication. |
VoiceStatusImpl |
setChannel(VoiceChannel channel) |
VoiceStatusImpl |
setDeaf(boolean deaf) |
VoiceStatusImpl |
setMute(boolean mute) |
VoiceStatusImpl |
setServerDeaf(boolean serverDeaf) |
VoiceStatusImpl |
setServerMute(boolean serverMute) |
VoiceStatusImpl |
setSessionId(java.lang.String sessionId) |
VoiceStatusImpl |
setSuppressed(boolean suppressed) |
java.lang.String |
toString() |
public boolean isMuted()
VoiceStatusUser muted himselfisMuted in interface VoiceStatuspublic boolean isServerMuted()
VoiceStatusUser got muted by an Admin (server side)isServerMuted in interface VoiceStatuspublic boolean isDeaf()
VoiceStatusUser deafened himselfisDeaf in interface VoiceStatuspublic boolean isServerDeaf()
VoiceStatusUser got deafened by an Admin (server side)isServerDeaf in interface VoiceStatuspublic boolean isSuppressed()
VoiceStatusUser is unable to speak because the
channel is actively suppressing audio communication. This occurs only in AFK channels, where no one is
allowed to send audio.isSuppressed in interface VoiceStatusUser's audio is being suppressed.public VoiceChannel getChannel()
VoiceStatusVoiceChannel of the User
If the User is currently not in a VoiceChannel, this returns nullgetChannel in interface VoiceStatuspublic Guild getGuild()
VoiceStatusGuild of the User's VoiceChannel
If the User is currently not in a VoiceChannel, this returns nullgetGuild in interface VoiceStatuspublic User getUser()
VoiceStatusUser corresponding to this VoiceStatus Object
(Backreference)getUser in interface VoiceStatuspublic java.lang.String getSessionId()
getSessionId in interface VoiceStatuspublic boolean inVoiceChannel()
VoiceStatusUser is currently in a VoiceChannel
in the Guild returned from getGuild().false, getChannel() will return null.inVoiceChannel in interface VoiceStatusUser is currently in a VoiceChannel
in this Guild.public VoiceStatusImpl setMute(boolean mute)
public VoiceStatusImpl setServerMute(boolean serverMute)
public VoiceStatusImpl setDeaf(boolean deaf)
public VoiceStatusImpl setServerDeaf(boolean serverDeaf)
public VoiceStatusImpl setChannel(VoiceChannel channel)
public VoiceStatusImpl setSessionId(java.lang.String sessionId)
public VoiceStatusImpl setSuppressed(boolean suppressed)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object