Rubenツ
Rubenツ
DIAdiscord.js - Imagine an app
Created by Rubenツ on 11/17/2024 in #djs-voice
Bot don't join VC (err: TypeError: Cannot read properties of undefined (reading 'set') )
When i try to do this
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
it returns me the error
TypeError: Cannot read properties of undefined (reading 'set')
at Object.adapterCreator (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\discord.js\src\structures\Guild.js:1418:34)
at new VoiceConnection (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\@discordjs\voice\dist\index.js:1699:29)
at createVoiceConnection (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\@discordjs\voice\dist\index.js:2118:27)
at joinVoiceChannel (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\@discordjs\voice\dist\index.js:2139:10)
at client.connectToChannel (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\src\handlers\audio\radio.js:34:32)
System >> [Sun Nov 17 2024 10:59:16] >> Starting up ...
TypeError: Cannot read properties of undefined (reading 'set')
at Object.adapterCreator (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\discord.js\src\structures\Guild.js:1418:34)
at new VoiceConnection (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\@discordjs\voice\dist\index.js:1699:29)
at createVoiceConnection (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\@discordjs\voice\dist\index.js:2118:27)
at joinVoiceChannel (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\node_modules\@discordjs\voice\dist\index.js:2139:10)
at client.connectToChannel (C:\Users\schad\OneDrive\discord bot\spooky_v14_2\src\handlers\audio\radio.js:34:32)
System >> [Sun Nov 17 2024 10:59:16] >> Starting up ...
And when i log channel.guild.voiceAdapterCreator I recieve this in the console Voice Adapter Creator: [Function (anonymous)] Someone who can help me with this?
5 replies
DIAdiscord.js - Imagine an app
Created by Rubenツ on 7/9/2024 in #djs-voice
different player in different guilds
Is it possible to create players in diffrent guilds that it also plays diffrent things? Currently I'm creating my player like this but i can't find out how to create a custum one for a server
const player = createAudioPlayer({ behaviors: { noSubscriber: NoSubscriberBehavior.Play }});
const player = createAudioPlayer({ behaviors: { noSubscriber: NoSubscriberBehavior.Play }});
2 replies
DIAdiscord.js - Imagine an app
Created by Rubenツ on 11/13/2022 in #djs-questions
discord API notifications
6 replies