Skip to main content

Discord.DeleteMessage

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

Syntax

Discord.DeleteMessage "webhook_url" "message_id" "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" or with the Discord.SendMessageAndWait method
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.

On a running server

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