voiceAdapterCreator not working

can someone tell me why this is happening
adapterCreator: channel.guild.voiceAdapterCreator
^

TypeError: Cannot read properties of undefined (reading 'voiceAdapterCreator')
adapterCreator: channel.guild.voiceAdapterCreator
^

TypeError: Cannot read properties of undefined (reading 'voiceAdapterCreator')
const channel = message.member.voice.channelId
const connection = joinVoiceChannel({
channelId: channel,
guildId: channel.guild,
adapterCreator: channel.guild.voiceAdapterCreator
})
connection()
const channel = message.member.voice.channelId
const connection = joinVoiceChannel({
channelId: channel,
guildId: channel.guild,
adapterCreator: channel.guild.voiceAdapterCreator
})
connection()
DJS voice installed
2 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Asega
AsegaOP13mo ago
so string.id.guild? ok so what should i do. how would i switch it out of a string it alreadt is channel for guildId : guildId: channel.guild oh i see so const channel = message.member.voice.channel the thing i just sent for channel and then for guild guild: channel.guildId it joined but then said this connection() ^ TypeError: connection is not a function got it thx have a nice day
Want results from more Discord servers?
Add your server