Clean
Quickly delete multiple messages from a channel.

Usage:

y!clean <number (1-100)> {filter}
Yui can only delete messages up to 14 days old, as per Discord's Terms of Service.

Filters

Filters may be used to clear only messages that meet the specified criteria.
Filter
Description
invites
Deletes messages containing Discord server invites.
user <member>
Deletes messages sent by the mentioned member.
bots
Deletes messages sent by bots.
you
Deletes messages sent by Yui.
me
Deletes messages sent by you.
has <string>
Deletes messages containing the specified string.
is <string>
Deletes messages that exactly match the specified string.
uploads
Deletes messages containing an attachment.
embeds
Deletes messages containing an embed.
links
Deletes messages containing links.
regex <regex>
Uses regex matching to delete messages.
When clearing messages with a filter, the specified number determines how many messages are checked, not how many are deleted.

Related Commands

Used to remove all messages and webhooks from a channel.
Last modified 9mo ago
Copy link