Clear Messages
Allows clearing messages in a specified channel.
Command parameters are specified as <required>, [optional] and (none).
- Command name:
!clear- Params:
<#channelMention> <messageCount> - Description:
- Removes the specified message count from the channel mentioned.
messageCounthas a maximum of 100 to prevent extreme amount of message removals, due to human error (though you can run the command multiple times).
- Params:
- Command name:
!clearuser- Params:
<userId> <#channelMention> <messageCount> [beforeMessageId] - Description:
- Deletes messages posted by the specified
userIdin the#channel. - This command isn’t perfect and may not delete all messages, so please double-check the results after running the command.
- Note: It’s ALSO possible that your Discord client/app may cache messages on your end. Make sure to refresh/force-close and reopen your Discord client/app to see the updated message list.
- The best way to verify is probably to check the
#discord-logschannel to see deleted message logs.
- If
beforeMessageIdis specified, it will attempt to retrieve messages posted before the specified message ID.- This is useful if there has been many messages after spam.
- If Decicus spams, then Takarii posts a few messages that aren’t spam, you can copy the message ID of Takarii’s first message and it will “ignore” all the messages after that (hopefully that explains it well enough).
- Deletes messages posted by the specified
- Params: