Joining a voice channel on ready (discord.js)
问题 I tried this: client.on('ready', () => { let channel = client.channels.get('432462518380789771'); channel.join() }); It doesnt work. I made sure that the ID is right and everything and its still not working. 回答1: Considering we have no context on the error you're receiving, I'll provide a code example to see if this fixes your issue. client.on("ready", () => { const channel = client.channels.get("mychannelid"); if (!channel) return console.error("The channel does not exist!"); channel.join()