MemberVoiceState
This data type describes member voice channel connectivity state.
Properties
| Property | Type | Description |
|---|---|---|
inChannel | Boolean | true if this Member is currently in channel |
channel | VoiceChannel | The current voice channel that the Member is in |
muted | Boolean | true if whether the Member is muted, either by themselves or by an admin |
selfMuted | Boolean | true if this Member is muted by themselves |
guildMuted | Boolean | true if this Member is muted by an admin |
deafened | Boolean | true if whether the Member is deafened, either by themselves or by an admin |
selfDeafened | Boolean | true if this Member is deafened by themselves |
guildDeafened | Boolean | true if this Member is deafened by an admin |
sendingVideo | Boolean | true if this Member has their camera on |
streaming | Boolean | true if this Member is currently streaming |
suppressed | Boolean | true if this Member is suppressed (is in AFK channel or stage listener) |
Methods
approveSpeaker()
Promotes this Member as speaker and returns true if success. The "voice mute others" permission is required for this method to work.
Returns: Boolean
Warning! Quota
Following methods have shared quota and can only be invoked 1 times in the same template:
approveSpeakerdeclineSpeakerinviteSpeaker
declineSpeaker()
Rejects this Member request to speak and returns true if success. The "voice mute others" permission is required for this method to work.
Returns: Boolean
Warning! Quota
Following methods have shared quota and can only be invoked 1 times in the same template:
approveSpeakerdeclineSpeakerinviteSpeaker
inviteSpeaker()
Invites this member to become a speaker. The "voice mute others" permission is required for this method to work.
Returns: Boolean
Warning! Quota
Following methods have shared quota and can only be invoked 1 times in the same template:
approveSpeakerdeclineSpeakerinviteSpeaker