Discord.DeleteMessage
Deletes a message sent by a discord webhook (with that same webhook).
Syntax
Discord.DeleteMessage "webhook_url" "message_id" "thread_id"?
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
webhook url | Yes | Any text e.g. "Hello, World!" | |
message id | Yes | Any text e.g. "Hello, World!" | You can get it by right-clicking on a message and clicking "Copy message ID" or with the Discord.SendMessageAndWait method |
thread id | No | Any text e.g. "Hello, World!" | Default: no thread |
Possible errors
- ConnectionError
- DataProcessingError
- ProtocolError
- Response exceeded the configured maximum size.
- Message ID must not be empty.
- Provided URL is not a valid webhook URL.
On a running server
Use serhelp Discord.DeleteMessage to inspect the reference generated by your installed SER version.