Delete Command help Glitch

When I type the command (node: 28279) UnhandledPromiseRejectionWarning: TypeError [INVALID_TYPE]: Supplied options is not an object.
at Message.delete (/rbd/pnpm-volume/76922197-11c5-4935-bc76-c7ac6515cffb/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/structures/Message .js: 501: 44)
at /app/komutlar/clean.js:21:49 gives an error the command is message.channel.bulkDelete(args[0]).then(() => { const embed = new Discord.MessageEmbed() .setColor("") .setDescription(<:XydiaDogru:775701826300543007> | Başarıyla `${args[0]}` Adet Mesaj silindi.) message.channel.send(embed).then(m => m.delete(5000)) })

Bir dahaya hatalarını kod sunucularında sor, en sonda m.delete(5000) kodunu m.delete({timeout: 5000}) olarak değiştir, kod yapısı v12 sürümü ile tamamen değişti.

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