#wants to do a ping command
19 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.
show code
console.log('index.js')
const { Client, GatewayIntentBits, MembershipScreeningFieldType } = require('discord.js');
const { token } = require('./config.json');
const client = new Client({
intents: ["GUILDS", "GUILD_MEMBERS", "GUILD_BANS", "GUILD_EMOJIS_AND_STICKERS", "GUILD_INTEGRATIONS", "GUILD_WEBHOOKS", "GUILD_INVITES", "GUILD_VOICE_STATES", "GUILD_PRESENCES", "GUILD_MESSAGES", "GUILD_MESSAGE_REACTIONS", "GUILD_MESSAGE_TYPING", "DIRECT_MESSAGES", "DIRECT_MESSAGE_REACTIONS", "DIRECT_MESSAGE_TYPING"],
partials: ["USER", "REACTION", "MESSAGE", "GUILD_SCHEDULED_EVENT", "GUILD_MEMBER", "CHANNEL"]
})
client.once('ready', () => {
console.log('gotowy!');
client.user.setActivity("Serwer Polish&Mods", {type: 'LISTENING'});
});
client.on('messageCreate', (msg) => {
if (msg.content == 'ping') {
msg.channel.send({content: 'Pong!'})
}
})
client.login(token);
<@&839912195994812420>
What needs moderation here exactly?
use the GatewayIntentBits you imported
chill lol
this is the second time you did this shit in 2 days
Nah, sick of rude impatient fucks
can you like fucking stop pinging mods
oh then not so chill
Start here: https://discordjs.guide and do not ping people for no reason
?