A command that will help you to clear a specific number of messages in a row.
- npm i discord.js
- npm i node.js
Clear.js should be inserted in your Commands-file
- Find more about Commands-file right here
- You'll need to define a prefix
- Use clear following your prefix
- Idicate the amount of message you would like to delete
Usage:
<your_prefix / clear / amount_of_messages>
Example (prefix = "/" | messages = 10)
:
/clear 10 (will clear 10 messages)
- The following code Is not up to date (running under V11)
- You can learn more about Discord V12 by following this link
Update this line, thus, your code will be working on Discord V12
Many thanks to @Flattty for pointing it out !