Discord.SendMessageAndWait
Sends a message using a discord webhook and waits until it is completed. Returns the message id.
Syntax
Discord.SendMessageAndWait "webhook_url" *message_object "thread_id"?
Returns
text value
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
webhook url | Yes | Any text e.g. "Hello, World!" | |
message object | Yes | a reference to DMessage object. | |
thread id | No | Any text e.g. "Hello, World!" | Default: no thread |
Possible errors
- ConnectionError
- DataProcessingError
- ProtocolError
- Response exceeded the configured maximum size.
- Provided URL is not a valid webhook URL.
Validated examples using this method
On a running server
Use serhelp Discord.SendMessageAndWait to inspect the reference generated by your installed SER version.