All commands are not showing in the command list in the server
for some reason the only slash command that doesnt show is the spamming slash command
30 Replies
- 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!require('dotenv').config();
const { Client, GatewayIntentBits } = require('discord.js');
const { setupCensorSystem } = require('./censor'); // (assuming censor system)
const { setupMuteSystem } = require('./spamming'); // Import mute system (from spamming.js)
const { setupUnmuteSystem } = require('./unmute'); // Import unmute system
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent],
});
client.once('ready', () => {
console.log(
Logged in as ${client.user.tag}
);
setupCensorSystem(client); // Assuming censor system
setupMuteSystem(client); // Setup mute system from spamming.js
setupUnmuteSystem(client); // Setup unmute system
});
client.login(process.env.TOKEN);im confused
about which part?
this
you have this inside your command
wdym command
that overrides all commands with the ones you're passing
the file you sent
how do I fix it
which file
the only file you sent
we don't know how it's called
you sent it as "message.txt"
its called spamming.js
well, that
so what do I fix in it
don't set all commands in that callback
and how can I make sure in the future that all the commands will show
by not setting all commands to a single one
how do I fix this
so all the commands in one file?
the command is in its own file
I didnt decide it
then?
i used chat gpt
how do I do this
the AI itself doesn't understand the answers it gives, and often it's not even correct

@Qjuh i set it up but im getting a error called command.toJSON is not a function
how do I fix this
can you send the link to the guide
@Qjuh
its not helping
I read it
when I do node deploy-commands.js nothing happens
I set up the code
and I followed the steps
does it log anything at all?
if not then you might've not saved your file
oh yeah ur right
I didnt save it

this is what I got
yeah
how do I fix this