Can help me to create my bot pls

Can help me to create my bot pls
19 Replies
d.js toolkit
d.js toolkit8mo 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 docs8mo ago
Suggestion for @./u.7-z:guide Home: Introduction - Before you begin... read more
REGARDE MON STATUT
can help me i not understand this error
d.js docs
d.js docs8mo ago
Suggestion for @./u.7-z:guide Popular Topics: Gateway Intents read more
REGARDE MON STATUT
What should I do?
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
REGARDE MON STATUT
I tried yes
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
REGARDE MON STATUT
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 User8mo ago
Message Not Public
Sign In & Join Server To View
REGARDE MON STATUT
in which file
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
REGARDE MON STATUT
ok thanks ReferenceError: Client is not defined hmm
Harnes
Harnes8mo ago
Import it from discord.js
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
REGARDE MON STATUT
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 User8mo ago
Message Not Public
Sign In & Join Server To View