public interface VoiceStatus
| Modifier and Type | Method and Description |
|---|---|
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) |
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. |
boolean isMuted()
User muted himselfboolean isServerMuted()
User got muted by an Admin (server side)boolean isDeaf()
User deafened himselfboolean isServerDeaf()
User got deafened by an Admin (server side)boolean isSuppressed()
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.User's audio is being suppressed.VoiceChannel getChannel()
VoiceChannel of the User
If the User is currently not in a VoiceChannel, this returns nullGuild getGuild()
Guild of the User's VoiceChannel
If the User is currently not in a VoiceChannel, this returns nullUser getUser()
User corresponding to this VoiceStatus Object
(Backreference)java.lang.String getSessionId()
boolean inVoiceChannel()
User is currently in a VoiceChannel
in the Guild returned from getGuild().false, getChannel() will return null.User is currently in a VoiceChannel
in this Guild.