Skip to content

$connect

$connect will make your bot join a specified voice channel.

Usage

$connect[voiceID?;mute?;deafen?;guildId?]

Parameters

FieldTypeDescriptionRequired
voiceID?snowflakeVoice channel IDfalse
mute?booleanSet mute statefalse
deafen?booleanSet deafen statefalse
guildId?snowflakeGuild IDfalse

You require intents: ["GuildVoiceStates"] in your main file.

Example(s)

This will make your bot join a specified voice channel

1
client.command({
2
name: 'connect',
3
code: `
4
joined!
5
$connect[$voiceID]
6
`
7
});