Skip to main content

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

NameRequiredTypeDescription
webhook urlYesAny text e.g. "Hello, World!"
message objectYesa reference to DMessage object.
thread idNoAny 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.