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()
VoiceStatus
User
muted himselfisMuted
in interface VoiceStatus
public boolean isServerMuted()
VoiceStatus
User
got muted by an Admin (server side)isServerMuted
in interface VoiceStatus
public boolean isDeaf()
VoiceStatus
User
deafened himselfisDeaf
in interface VoiceStatus
public boolean isServerDeaf()
VoiceStatus
User
got deafened by an Admin (server side)isServerDeaf
in interface VoiceStatus
public boolean isSuppressed()
VoiceStatus
User
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 VoiceStatus
User's
audio is being suppressed.public VoiceChannel getChannel()
VoiceStatus
VoiceChannel
of the User
If the User
is currently not in a VoiceChannel
, this returns nullgetChannel
in interface VoiceStatus
public Guild getGuild()
VoiceStatus
Guild
of the User's
VoiceChannel
If the User
is currently not in a VoiceChannel
, this returns nullgetGuild
in interface VoiceStatus
public User getUser()
VoiceStatus
User
corresponding to this VoiceStatus Object
(Backreference)getUser
in interface VoiceStatus
public java.lang.String getSessionId()
getSessionId
in interface VoiceStatus
public boolean inVoiceChannel()
VoiceStatus
User
is currently in a VoiceChannel
in the Guild
returned from getGuild()
.false
, getChannel()
will return null
.inVoiceChannel
in interface VoiceStatus
User
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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object