How do I create a delete command in Disnake?

286 Views Asked by At

I would like to create a delete command using Disnake. I want to turn delete the 100 messages on the channel where they were executed. I would love to know the code!

I would like to make those, but I can't find them in my research.

Thanks.

1

There are 1 best solutions below

0
Myth On

You can do smth like in your async message delete function:

await inter.message.channel.purge(limit=100)