A Concourse resource for webhook notifications in Discord. Written in Go.
resource_types:
- name: discord-notification-resource
type: registry-image
source:
repository: logsquaredn/discord-notification-resource
tag: latest
resources:
- name: notify
type: discord-notification-resource
source:
...
jobs:
- name: some-job
plan:
...
- put: notify
params:
...| Parameter | Required | Description |
|---|---|---|
webhook_id |
yes | the id of the webhook to post to see below (1) |
token |
yes | the token to use to authenticate when posting to the webhook see below (2) |
(1)
webhook_idwill be the second to last path parameter in the url copied from theCopy Webhook URLbutton below
(2)
tokenwill be the last path parameter in the url copied from theCopy Webhook URLbutton below
not implemented
not implemented
see discordgo.WebhookParams. Addtionally:
| Parameter | Required | Description |
|---|---|---|
wait |
no | whether or not to wait on the response and gather version and metadata info from it. Default false |
content_file |
no | path to a file containing the content of the message. Overrides content |
username_file |
no | path to a file containing the username for the message. Overrides username |
avatar_url_file |
no | path to a file containing the url of the avatar for the message. Overrides avatar_url |
