VoiceManagerClient
Defined in: packages/voice/src/connection.ts:537
What a VoiceManager needs from its client.
Properties
Section titled “Properties”userId
Section titled “userId”
readonlyuserId:string|undefined
Defined in: packages/voice/src/connection.ts:539
The bot’s user ID, once logged in.
Methods
Section titled “Methods”canSendVoiceState()?
Section titled “canSendVoiceState()?”
optionalcanSendVoiceState(guildId):boolean
Defined in: packages/voice/src/connection.ts:541
Whether op 4 for this guild can be sent now (connected, and the guild is on this shard).
Parameters
Section titled “Parameters”guildId
Section titled “guildId”string
Returns
Section titled “Returns”boolean
sendVoiceState()
Section titled “sendVoiceState()”sendVoiceState(
guildId,channelId,options):boolean
Defined in: packages/voice/src/connection.ts:543
Sends op 4 through the owning shard.
Parameters
Section titled “Parameters”guildId
Section titled “guildId”string
channelId
Section titled “channelId”string | null
options
Section titled “options”selfDeaf?
Section titled “selfDeaf?”boolean
selfMute?
Section titled “selfMute?”boolean
Returns
Section titled “Returns”boolean
Whether it was sent.