How do i make commands

const {Client, Events, GatewayIntentBits} = require('discord.js');


const client = new Client({intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]});




client.on(Events.ClientReady, () => {
    console.log(`Logged in as ${client.user.tag}!`);
});

client.on(Events.MessageCreate, (message) => {
    if (message.content === 'ping') {
        message.reply('pong');
    }});

client.login("Token")

its not workign rn and where do i put the prefix
Was this page helpful?