Connection
Represents a connection to a Discord voice channel
Extends
EventEmitter
Constructors
new Connection()
Parameters
Parameter | Type | Description |
---|---|---|
manager | Shoukaku | The manager of this connection |
options | VoiceChannelOptions | The options to pass in connection creation |
Returns
Overrides
EventEmitter.constructor
Defined in
shoukaku/src/guild/Connection.ts:86
Properties
channelId
VoiceChannelId of the connection that is being managed by this instance
Defined in
shoukaku/src/guild/Connection.ts:40
deafened
Deafen status in connected voice channel
Defined in
shoukaku/src/guild/Connection.ts:52
guildId
GuildId of the connection that is being managed by this instance
Defined in
shoukaku/src/guild/Connection.ts:36
lastChannelId
Id of the voice channel where this instance was connected before the current channelId
Defined in
shoukaku/src/guild/Connection.ts:56
lastRegion
Last region of the connected voice channel
Defined in
shoukaku/src/guild/Connection.ts:68
manager
The manager where this connection is on
Defined in
shoukaku/src/guild/Connection.ts:32
muted
Mute status in connected voice channel
Defined in
shoukaku/src/guild/Connection.ts:48
region
Region of connected voice channel
Defined in
shoukaku/src/guild/Connection.ts:64
serverUpdate
Cached serverUpdate event from Lavalink
Defined in
shoukaku/src/guild/Connection.ts:72
sessionId
Id of the currently active voice channel connection
Defined in
shoukaku/src/guild/Connection.ts:60
shardId
ShardId where this connection sends data on
Defined in
shoukaku/src/guild/Connection.ts:44
state
Connection state
Defined in
shoukaku/src/guild/Connection.ts:76
Methods
setDeaf()
Set the deafen status for the current bot user
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
deaf | boolean | false | Boolean value to indicate whether to deafen or undeafen |
Returns
void
Default Value
Defined in
shoukaku/src/guild/Connection.ts:107
setMute()
Set the mute status for the current bot user
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
mute | boolean | false | Boolean value to indicate whether to mute or unmute |
Returns
void