Optional filterThe message to filter.
Optional afterThe ID of the message to purge after.
Optional aroundThe ID of the message to purge around.
Optional beforeThe ID of the message to purge before.
The limit of messages to purge.
Optional reasonThe reason for purging the messages.
A function used to reject certain messages. If
"break"is returned, further iteration of messages will stop and purging will begin immediately.