I want to make a bulk-clear command for my bot. I tried this code:

```js
            await message.channel.messages.fetch({ limit: args[0] }).then(messages => {
                message.channel.send(`Deleting Messages...`).then(msg => {
                    setTimeout(() => msg.delete(), 500)
                })
                message.channel.bulkDelete(messages);
            });

```

But it doesn't work correctly. when I run `!clear 3`, It deletes 2 messages.

* Notes: I am using discord.js v13 and node.js v16