Slash commands not being created

I have multiple slash commands that wont be create for some reason, and I have no Idea how to fix it, heres my code that sets it up:

const { Client, Events, GatewayIntentBits, ActivityType, SlashCommandBuilder } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.MessageContent] });
client.setMaxListeners(20);

const { setupRules } = require('./rules');
const { setupAutoResponders } = require('./autoresponders');
const { setupRoles } = require('./roles');
const { setupWelcome } = require('./welcome');
const { setupGoodbye } = require('./leave');
const { setupBoost } = require('./boost');
const { setupTickets } = require('./tickets');
const { setupAffiliates } = require('./affiliates');
const { setupStarBoard } = require('./starboard');
const { setupClownBoard } = require('./clownboard')
const { setupEmbeds } = require('./embeds')
const { setupLevels } = require('./levelup')
const { setupColors } = require('./colors')
// Specify the role ID that users must have to use the commands
const requiredRoleID = '1302436968633864242'; // Replace with your actual role ID

client.on(Events.GuildMemberAdd, member => {
        setupWelcome(member);
});

client.on(Events.GuildMemberRemove, member => {
        setupGoodbye(member);
});

client.on(Events.ClientReady, (x) => {
    console.log(`${x.user.tag} is ready!`);
    client.user.setPresence({
        activities: [{ name: `.gg/agu`, type: ActivityType.Listening }],
        status: 'online',
    });
});
Was this page helpful?