new to discord.js

i want a working command but i cant find it out
5 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Alex
Alex9mo ago
This is my
index.js
index.js
,
const {SapphireClient} = require ("@sapphire/framework");
const {GatewayIntentBits} = require("discord.js");
const {token, prefix} = require('./config.json');
const client = new SapphireClient({
intents: [GatewayIntentBits.MessageContent,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages],
loadMessageCommandListeners :true
})



client.login(token)
const {SapphireClient} = require ("@sapphire/framework");
const {GatewayIntentBits} = require("discord.js");
const {token, prefix} = require('./config.json');
const client = new SapphireClient({
intents: [GatewayIntentBits.MessageContent,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages],
loadMessageCommandListeners :true
})



client.login(token)
I also have a ping.js
Nounejm
Nounejm9mo ago
depends if you want slash commands
Alex
Alex9mo ago
no i just dont get it working i am struggeling for 2 hours
souji
souji9mo ago
if you need support with the sapphire framework, you are better off asking in their discord: https://sapphirejs.dev/discord\