Module discord

Module discord 

Source
Expand description

Discord webhook Endpoint and EndpointConfig implementation

§Configuration Example

[[server.endpoint]]
type = "discord"
url = "https://discord.com/api/webhooks/webhook_id/webhook_token"
username = "Bot Name"
avatar_url = "https://example.com/avatar/url"
tts = true
notifications = ["notification_id1", "notification_id3"]

[server.endpoint.allowed_mentions]
parse = ["everyone"]
roles = ["role1"]
users = ["user1"]
replied_user = false

Structs§

DiscordEndpoint
Data structure to represent the Discord webhook Endpoint.