By default, this command requires the Manage Server and Manage Messages permissions. This command requires the bot to have the Manage Messages
permission.
Syntax
count, first, and last in one of the following configurations:
<count>— select the last<count>messages<first>— select messages starting from<first>and ending at the most recent message<count> <first>— select up to<count>messages starting from<first><count> <last>— select up to<count>messages ending with<last>as the most recent<first> <last>— select messages between<first>and<last>(inclusive)