$clearUserMessages
Clear messages by a user from the channel.
Usage
This function has four params.
Param | Description | Type | Required |
---|---|---|---|
channelID | The channel to clear messages in. | Snowflake | Yes |
userID | The user to clear messages for. | Snowflake | Yes |
amount | The amount of message to delete. | Integer | Yes |
returnDeletedMessageCount | Whether to return the actual amount of deleted messages. | Boolean | No |
Example
Last updated