Application did not respond

i’ve been trying to code a ranked discord bot and i managed to code it but when i run the bot and try to set it up in my discord server it gives me this error saying ‘application did not respond’ can someone please help me figure this out i’m not even sure if the code will do the job but it’s my first project and i just started learning how to code so if theres anything wrong feel free to tell me

const Discord = require('discord.js');
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const client = new Discord.Client({
  intents: [
    Discord.GatewayIntentBits.Guilds,
    Discord.GatewayIntentBits.GuildMessages
  ]
});

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

const Enmap = require('enmap');
const prefix = '-'; // Change this to your desired prefix
const queues = new Enmap({ name: 'queues' });
const rankings = new Enmap({ name: 'rankings' });

client.on('messageCreate', async (message) => {
  if (!message.content.startsWith(prefix) || message.author.bot) return;

  const args = message.content.slice(prefix.length).split(/ +/);
  const command = args.shift().toLowerCase();

  // Command to check rank
  if (command === 'rank') {
    const playerID = message.author.id;
    const playerRank = rankings.get(playerID) || 0;
    message.reply(`Your rank is ${playerRank}`);
  }

  // New command: Setup with -sett
  if (command === '-sett') {
    try {
      const channel = await message.guild.channels.create('Queue', { type: 'GUILD_TEXT' });

      const joinButton = new Discord.MessageButton()
        .setCustomId('join_queue')
        .setLabel('Join Queue')
        .setStyle('PRIMARY');

      const leaveButton = new Discord.MessageButton()
        .setCustomId('leave_queue')
        .setLabel('Leave Queue')
        .setStyle('DANGER');

      const row = new Discord.MessageActionRow()
        .addComponents(joinButton, leaveButton);

      const queueMessage = await channel.send({ content: 'Click a button to join or leave the queue:', components: [row] });

      // Store queue message and channel id for future reference
      queues.set('queue_message', queueMessage.id);
      queues.set('queue_channel', channel.id);

      // Inform setup completion
      message.reply('Queue setup completed.');
    } catch (err) {
      console.error('Error during setup:', err);
      message.reply('There was an error during setup.');
    }
  }
});

const YOUR_BOT_TOKEN = '';
const YOUR_APPLICATION_ID = '';
const YOUR_GUILD_ID = '';

client.login(YOUR_BOT_TOKEN);

const commands = [
  {
    name: 'sett',
    description: 'Set up the queue system',
    type: 1,
  },
];

const rest = new REST({ version: '9' }).setToken(YOUR_BOT_TOKEN);

(async () => {
  try {
    console.log('Started refreshing application (/) commands.');

    await rest.put(
      Routes.applicationGuildCommands(YOUR_APPLICATION_ID, YOUR_GUILD_ID),
      { body: commands },
    );

    console.log('Successfully reloaded application (/) commands.');
  } catch (error) {
    console.error(error);
  }
})();

I tried everything but i cant seem to find where the problem is