$clearMessages
Clear messages from a channel.
Usage
This function has three params.
Param | Description | Type | Required |
---|---|---|---|
channelID | The channel to clear messages in. | 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