13 Replies
- 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!
- ✅
Marked as resolved by OPhow i do that?
Can you come talk to me and help me?
to fix that
Because I tried everything and it didn't work
Oh, so do you have a code for me that uses V14??
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
client.once('ready', () => {
console.log('Bot is ready!');
});
client.on('messageCreate', message => {
if (message.content === '!ping') {
message.reply('Pong!');
}
});
// Replace 'YOUR_TOKEN' with your own bot token
client.login('YOUR_TOKEN');
this code work?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
i new with code
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
what is the V i need
?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
ha
But I use Google Translate, it's not a good translator
for read
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
thx