send_discord_webhook

Sends a message to a Discord channel via a webhook URL.

Categories: chat

Required arguments

Key(s)DescriptionType
webhook_urlThe Discord webhook URL to send the message to.STRING
textThe message content to send to the webhook.STRING

Optional arguments

Key(s)DescriptionTypeDefault
usernameThe display name to use for the webhook message.STRING
avatar_urlA URL to an image to use as the webhook avatar. Taken literally: unlike username and text, this is not formatted, so placeholders in it are not replaced.STRING
ttsWhether to send the message as text-to-speech.BOOLEANfalse
embedsA list of embed subsections to include in the webhook message, each with title, description, url, color, timestamp, author, footer, image, thumbnail, and fields.DYNAMIC

embeds entries

KeyDescriptionTypeRequired
titleThe embed title, shown in bold at the top of the embed. Supports placeholders.STRINGno
descriptionThe embed body text. Supports placeholders.STRINGno
urlA URL to make the title a clickable link to. Does not support placeholders.STRINGno
colorThe embed sidebar color as a hex string, with or without a leading hash.STRINGno
timestampAn ISO-8601 timestamp to show in the embed footer, e.g. 2026-01-01T12:00:00Z.STRINGno
authorThe author line shown above the title.OBJECTno
author.nameThe author name shown above the embed title. Supports placeholders.STRINGno
author.urlA URL to make the author name a clickable link to. Does not support placeholders.STRINGno
author.icon-urlA URL to an image to show as the author icon. Does not support placeholders.STRINGno
footerThe footer line shown below the embed body.OBJECTno
footer.textThe footer text shown below the embed body. Supports placeholders.STRINGno
footer.icon-urlA URL to an image to show as the footer icon. Does not support placeholders.STRINGno
imageThe large image shown at the bottom of the embed.OBJECTno
image.urlA URL to the image to show. Does not support placeholders.STRINGyes
thumbnailThe small image shown in the top right of the embed.OBJECTno
thumbnail.urlA URL to the image to show. Does not support placeholders.STRINGyes
fieldsA list of name-value fields shown in the embed body.OBJECT_LISTno
fields[].nameThe field name, shown in bold. Supports placeholders.STRINGno
fields[].valueThe field value, shown below the name. Supports placeholders.STRINGno
fields[].inlineWhether to show this field on the same line as adjacent inline fields.BOOLEANno

Example

effects:
  - id: send_discord_webhook
    args:
      webhook_url: https://discord.com/api/webhooks/123456789012345678/abcDEF-token
      text: %player_name% just found a legendary item!
      username: <value> # ← Optional
      avatar_url: https://example.com/avatar.png # ← Optional
      tts: true # ← Optional
      embeds: # ← Optional
        - title: <value> # ← Optional
          description: <value> # ← Optional
          url: <value> # ← Optional
          color: <value> # ← Optional
          timestamp: <value> # ← Optional
          author: # ← Optional
            name: <value> # ← Optional
            url: <value> # ← Optional
            icon-url: <value> # ← Optional
          footer: # ← Optional
            text: <value> # ← Optional
            icon-url: <value> # ← Optional
          image: # ← Optional
            url: <value>
          thumbnail: # ← Optional
            url: <value>
          fields: # ← Optional
            - name: <value> # ← Optional
              value: <value> # ← Optional
              inline: <value> # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue
Permanentfalse