TypeError Cannot read properties of undefined (reading 'voice')

const connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: guild.id,
adapterCreator: guild.voiceAdapterCreator,
})
await guild.me.voice.setSuppressed(false)
const connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: guild.id,
adapterCreator: guild.voiceAdapterCreator,
})
await guild.me.voice.setSuppressed(false)
When trying to speak in the stage channel, it shows up with this error: TypeError Cannot read properties of undefined (reading 'voice')? Edit: I just realised it's now <guild>.members.me šŸ˜„
1 Reply
d.js docs
d.js docsā€¢3y ago
ā€¢ What's your exact discord.js npm list discord.js and node node -v version? ā€¢ Post the full error stack trace, not just the top part! ā€¢ Show your code! ā€¢ Explain what exactly your issue is. ā€¢ Not a discord.js issue? Check out #useful-servers.
Want results from more Discord servers?
Add your server