Discord.js V13 DiscordAPIError: Invalid Form Body

hi, i started converting my discord bot from v12 to v13 but i am getting error on delete messages command. When I use the command, the messages are deleted, but it does not send the message it should send, I added the error I got, can you help?

const {Permissions}= require('discord.js');

module.exports = {
    
    isim: "sil", 
    alternatifler: ["temizle"],
     kullanımı:"sil",

çalıştır : async(client, message, args, member) => {
  if (!message.member.permissions.has(Permissions.FLAGS.MANAGE_MESSAGES))
    return message
      .reply({ content: "> :x: **Başarısız!** Mesajları Yönet yetkin yok dostum.", allowedMentions: { repliedUser: false } })
      .catch((err) => {});

  const sayi = args[0]

  if (!sayi) {
    return message.reply("En Az `1 - 100` Arasında Bir Tam Sayı Değeri Girmelisiniz.")
  }

  if (sayi > 101) return message.reply("En Az `1 - 100` Arasında Bir Tam Sayı Değeri Girmelisiniz.")


  let messages = await message.channel.messages.fetch({
    limit: sayi
  });

 await message.channel.bulkDelete(messages, true);
  
 message.reply({content: `> ✅ ${sayi} adet mesaj başarıyla silindi!`, allowedMentions: { repliedUser: false }}).then((msg)=>{setTimeout (()=> msg.delete(),5000)})
    }
  }

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.