#About adapterCreator

10 messages · Page 1 of 1 (latest)

sand aurora
#

I tried to make my bot join to a specific voice channel on ready event. It gives error on adapterCreator part.
Discord.js: Latest of v13

small sphinxBOT
#

• 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.

sand aurora
#

i tried to define channel and guild too but it doesn't work

gleaming sinew
#

You need to get it from client

small sphinxBOT
#

Documentation suggestion for @sand aurora:
property Client#channels
All of the [Channel](<https://discord.js.org/#/docs/discord.js/stable/class/Channel>)s that the client is currently handling, mapped by their ids - as long as sharding isn't being used, this will be every channel in every guild the bot is a member of. Note that DM channels will not be initially cached, and thus not be present in the Manager without their explicit fetching or use.

sand aurora
gleaming sinew
#

Actually, you only need to get your guild so u can use

const guild = client.guilds.cache.get(GUILD_ID);

And then

guild.voiceAdapterCreator
sand aurora