Skip to content

purge

purge standard

The standard way of purging messages.

Parameters:

Name Type Description Default
amount int

An amount of messages to purge.

required
reason str

A reason for why the messages were purged.

None

purge user

Purge an amount of messages from a given user

Parameters:

Name Type Description Default
amount int

A number between 1 and 100

required
user discord.User

A user who's messages should be purged

required
reason str

A reason for why the messages were purged. Defaults to None.

None

purge before

Purging messages before a given date

Parameters:

Name Type Description Default
amount int

An amount of messages to purge

required
reason str

A reason for why the messages were purged

None

purge after

Purging messages after a given date

Parameters:

Name Type Description Default
amount int

An amount of messages to purge

required
reason str

A reason for why the messages were purged

None