Skip to main content

Module discord

Module discord 

Source
Expand description

Discord - Discord Webhook

Sends a message to a Discord Webhook on events

§Example

webhooks:
  my_discord:
    type: discord
    url: "https://discord.com/api/webhooks/..."

or

webhooks:
  my_discord:
    type: discord
    avatar_url: "https://example.com/avatar.png"
    username: "autopulse"

See DiscordWebhook for all options

Structs§

DiscordMention
A single Discord mention entry, attached to one or more event types.
DiscordWebhook

Enums§

MentionTarget
A single entry in a discord webhook’s mentions[].targets.
SpecialMention
One of the two broadcast mention literals.
TaggedMention
A user or role mention, written in config as a single-key map keyed by user or role with a string ID value.