Skip to main content

Discord.EditMessage

Edits a message sent by a discord webhook (with that same webhook).

Syntax​

Discord.EditMessage "webhook_url" "message_id" *message_object "thread_id"?

Arguments​

NameRequiredTypeDescription
webhook urlYesAny text e.g. "Hello, World!"
message idYesAny text e.g. "Hello, World!"You can get it by right-clicking on a message and clicking "Copy message ID"
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.
  • Message ID must not be empty.
  • Provided URL is not a valid webhook URL.

Validated examples using this method​

On a running server​

Use serhelp Discord.EditMessage to inspect the reference generated by your installed SER version.