My discord bot code is working but is not responding to my commands [duplicate]

Solution 1:

GUILDS intent is not enough to receive messages. You will also need GUILD_MESSAGES intent for messages:

const client = new Client({ 
  intents: [
    Intents.FLAGS.GUILDS,
    Intents.FLAGS.GUILD_MESSAGES
  ] 
})