mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-15 05:36:54 +00:00
Adding the ability to join whatever vc the user is in
This commit is contained in:
@@ -31,7 +31,10 @@ module.exports = {
|
|||||||
https://github.com/porridgewithraisins/jam-bot#known-bugs)
|
https://github.com/porridgewithraisins/jam-bot#known-bugs)
|
||||||
const stream = await ytdl(url, { filter: 'audioonly' });
|
const stream = await ytdl(url, { filter: 'audioonly' });
|
||||||
*/
|
*/
|
||||||
const channel = bot.channels.cache.get("930148609406685227");
|
// const channel = bot.channels.cache.get("930148609406685227");
|
||||||
|
const channel = message.member.guild.voice.channel;
|
||||||
|
if (!channel) { message.reply("Please join a voice channel before you try this!"); }
|
||||||
|
|
||||||
const connection = joinVoiceChannel({
|
const connection = joinVoiceChannel({
|
||||||
channelId: channel.id,
|
channelId: channel.id,
|
||||||
guildId: channel.guild.id,
|
guildId: channel.guild.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user