VoiceState
public interface GuildVoiceState extends VoiceState
Modifier and Type | Method | Description |
---|---|---|
VoiceChannel |
getChannel() |
Returns the current
VoiceChannel that the Member
is in. |
Guild |
getGuild() |
|
Member |
getMember() |
Returns the
Member corresponding to this GuildVoiceState instance
(Backreference) |
boolean |
inVoiceChannel() |
Used to determine if the
Member is currently in a VoiceChannel
in the Guild returned from getGuild() .If this is false , getChannel() will return null . |
boolean |
isDeafened() |
Returns whether the
Member is deafened, either
by choice VoiceState.isSelfDeafened() or deafened by an admin isGuildDeafened() |
boolean |
isGuildDeafened() |
Returns whether the
Member got deafened by an Admin |
boolean |
isGuildMuted() |
Returns whether the
Member got muted by an Admin |
boolean |
isMuted() |
Returns whether the
Member is muted, either
by choice VoiceState.isSelfMuted() or deafened by an admin isGuildMuted() |
boolean |
isSuppressed() |
Returns true if this
Member is unable to speak because the
channel is actively suppressing audio communication. |
getAudioChannel, getJDA, getSessionId, isSelfDeafened, isSelfMuted
boolean isMuted()
Member
is muted, either
by choice VoiceState.isSelfMuted()
or deafened by an admin isGuildMuted()
boolean isDeafened()
Member
is deafened, either
by choice VoiceState.isSelfDeafened()
or deafened by an admin isGuildDeafened()
boolean isGuildMuted()
Member
got muted by an Adminboolean isGuildDeafened()
Member
got deafened by an Adminboolean isSuppressed()
Member
is unable to speak because the
channel is actively suppressing audio communication. This occurs only in
VoiceChannels
where the Member either doesn't have
Permission#VOICE_SPEAK
or if the channel is the
designated AFK channel.Member's
audio is being suppressed.VoiceChannel getChannel()
VoiceChannel
that the Member
is in. If the Member
is currently not in a
VoiceChannel
, this returns null.Guild getGuild()
Guild
of the Member's
VoiceChannel
. If the Member
is currently
not in a VoiceChannel
, this returns nullMember getMember()
Member
corresponding to this GuildVoiceState instance
(Backreference)boolean inVoiceChannel()
Member
is currently in a VoiceChannel
in the Guild
returned from getGuild()
.false
, getChannel()
will return null
.Member
is currently in a VoiceChannel
in this Guild
.