Dylan
Dylan
DIAdiscord.js - Imagine an app
Created by Dylan on 8/11/2023 in #djs-questions
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")
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
3 replies