#help for making voice bot with node.js
15 messages · Page 1 of 1 (latest)
• 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.
make it yourself
const { Client } = require('discord.js');
const client = new Client({ intents: [] });
client.login('token');
that's not just the base of any Discord bot?
what
every discord bot has something like that, without that the bot doesn't even works
const { Client } = require('discord.js');
const client = new Client({ intents: [
//your Intents here
] });
const TOKEN = " "//your TOKEN here
Client.on((message) async "message" => {
//some code here
})
client.login(TOKEN);
that code isn’t even valid javascript
please don’t spoon feed especially when it’s not correct
mine or the code from the other guy
yours
😢
some parts are correct, but the event is not
yes, I wrote that in my phone while I was doing other things so I don't really checked if the code was rightxd, sorry about that
Home: Before you begin...