Home > other >  My discord bot isnt responding to commands
My discord bot isnt responding to commands

Time:11-29

I have a Discord Bot, it turns on, but it doesn't answer to commands. Here's my code

const Discord = require("discord.js");
const client = new Discord.Client( {intents: 32767}, );
 { 
   partials: ['MESSAGE', 'CHANNEL', 'REACTION', 'USER', 'GUILD_MEMBER']
 }

client.on('ready', () => {
  console.log('Estoy ON')
  client.user.setActivity('Ark Survival Evolved', { type: "PLAYING"});
});

client.once('message', (message) => {
  if(message.content.startsWith('ping')) {
    message.channel.send(`pong            
  • Related