Can help me to create my bot pls

Can help me to create my bot pls
19 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs14mo ago
Suggestion for @./u.7-z:guide Home: Introduction - Before you begin... read more
./u.7-z
./u.7-zOP14mo ago
No description
./u.7-z
./u.7-zOP14mo ago
can help me i not understand this error
d.js docs
d.js docs14mo ago
Suggestion for @./u.7-z:guide Popular Topics: Gateway Intents read more
./u.7-z
./u.7-zOP14mo ago
What should I do?
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
./u.7-z
./u.7-zOP14mo ago
I tried yes
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
./u.7-z
./u.7-zOP14mo ago
Should I put it where?
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
./u.7-z
./u.7-zOP14mo ago
in which file
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
./u.7-z
./u.7-zOP14mo ago
ok thanks ReferenceError: Client is not defined hmm
Harnes
Harnes14mo ago
Import it from discord.js
./u.7-z
./u.7-zOP14mo ago
?
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
./u.7-z
./u.7-zOP14mo ago
const Discord = require("discord.js");
const config = require("./config.json");
const client = new Discord.Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});
client.login(config.BOT_TOKEN);
const Discord = require("discord.js");
const config = require("./config.json");
const client = new Discord.Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});
client.login(config.BOT_TOKEN);
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server