#that aside you have the proper intents
1 messages · Page 1 of 1 (latest)
I added it for later
I'll put some console logs and see where it stops
ok I found an error
messages are deteced now i dunno why it didn't work before
I probably forgot to save
it's true, that's not a function
(or in general, feel free to read from the beginning of the @discordjs/voice guide)
okay
thanks
So I used
const { joinVoiceChannel } = require('@discordjs/voice');
const channel = message.member.voice.channel;
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
and got an error code: 'MODULE_NOT_FOUND',
also there are if statement checks to make sure channel does exist
please read from the beginning of the @discordjs/voice guide
Library: Voice Connections