Nixnix
Nixnix

Reputation: 3

Discord.py how would I add a command to clear out a certain amount of messages from a channel

I am looking to add a feature to my basic bot that will purge a number of messages in the channel i.e

!purge 50

Will then delete 50 messages from the current channel.

Upvotes: 0

Views: 57

Answers (1)

Liemeldert
Liemeldert

Reputation: 21

You can do this really easily. Using purge, you can make this command.

By the way, please look at the docs before asking a question here. It would save everyone time.

Upvotes: 2

Related Questions