2020-08-11 23:23:23 -04:00
|
|
|
# action.yml
|
2020-08-11 23:35:06 -04:00
|
|
|
name: 'Discord Webhook Action'
|
2021-07-20 01:26:33 -04:00
|
|
|
description: 'Send custom messages or upload files to discord webhooks with simple action inputs.'
|
2020-08-11 23:37:23 -04:00
|
|
|
branding:
|
|
|
|
icon: message-square
|
|
|
|
color: purple
|
2020-08-11 23:23:23 -04:00
|
|
|
inputs:
|
|
|
|
webhook-url:
|
|
|
|
description: 'Webhook URL from discord. See: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks for details'
|
|
|
|
required: true
|
2021-02-25 03:44:43 -05:00
|
|
|
content:
|
2021-01-16 02:13:48 -05:00
|
|
|
description: 'Message that is sent via the webhook.'
|
2022-09-27 18:37:26 -04:00
|
|
|
required: false
|
|
|
|
thread-id:
|
|
|
|
description: 'ID of the thread you want the webhook to send the message into (will automatically unarchive threads)'
|
|
|
|
required: false
|
2022-12-10 18:14:11 -05:00
|
|
|
thread-name:
|
|
|
|
description: 'Name of the thread you want the webhook to create'
|
|
|
|
required: false
|
|
|
|
flags:
|
|
|
|
description: 'Message flags'
|
|
|
|
required: false
|
2023-03-17 05:15:05 -04:00
|
|
|
wait:
|
|
|
|
description: 'Whether Discord should wait for confirmation of message send before responding to the webhook request'
|
2024-04-05 05:41:30 -04:00
|
|
|
required: false
|
2024-04-05 05:46:10 -04:00
|
|
|
default: "true"
|
2022-08-21 11:57:14 -04:00
|
|
|
username:
|
2020-08-11 23:23:23 -04:00
|
|
|
description: 'The username that should appear to send the message. Note: username will have the "bot" badge next to their name.'
|
2020-08-17 21:35:04 -04:00
|
|
|
required: false
|
2020-08-11 23:23:23 -04:00
|
|
|
avatar-url:
|
|
|
|
description: 'URL for the avatar that should appear with the message.'
|
2020-08-17 21:35:04 -04:00
|
|
|
required: false
|
2021-09-23 21:39:14 -04:00
|
|
|
tts:
|
|
|
|
description: 'Boolean to indicate whether the webhook is text-to-speech'
|
|
|
|
required: false
|
2021-01-16 02:21:24 -05:00
|
|
|
raw-data:
|
2021-07-19 23:41:01 -04:00
|
|
|
description: 'Name of a json file that will be sent as the data for the webhook'
|
|
|
|
required: false
|
|
|
|
filename:
|
|
|
|
description: 'Name of a file that will be uploaded via the webhook'
|
2021-01-16 02:13:48 -05:00
|
|
|
required: false
|
2021-09-23 21:39:14 -04:00
|
|
|
embed-title:
|
|
|
|
description: 'Embed title'
|
|
|
|
required: false
|
2022-09-07 19:22:44 -04:00
|
|
|
embed-url:
|
|
|
|
description: 'Embed URL'
|
|
|
|
required: false
|
2021-09-23 21:39:14 -04:00
|
|
|
embed-description:
|
|
|
|
description: 'Embed description'
|
|
|
|
required: false
|
|
|
|
embed-timestamp:
|
|
|
|
description: 'Embed timestamp (ISO8601 format)'
|
|
|
|
required: false
|
|
|
|
embed-color:
|
|
|
|
description: 'Embed color (integer)'
|
|
|
|
required: false
|
|
|
|
embed-footer-text:
|
|
|
|
description: 'Embed footer text'
|
|
|
|
required: false
|
|
|
|
embed-footer-icon-url:
|
|
|
|
description: 'Embed footer icon url'
|
|
|
|
required: false
|
|
|
|
embed-image-url:
|
|
|
|
description: 'Embed image url'
|
|
|
|
required: false
|
|
|
|
embed-thumbnail-url:
|
|
|
|
description: 'Embed thumbnail url'
|
|
|
|
required: false
|
|
|
|
embed-author-name:
|
|
|
|
description: 'Embed embed author name'
|
|
|
|
required: false
|
|
|
|
embed-author-url:
|
|
|
|
description: 'Embed author url'
|
|
|
|
required: false
|
|
|
|
embed-author-icon-url:
|
|
|
|
description: 'Embed author icon'
|
|
|
|
required: false
|
2020-08-11 23:23:23 -04:00
|
|
|
runs:
|
2024-03-27 10:10:02 -04:00
|
|
|
using: 'node20'
|
2022-08-21 11:57:14 -04:00
|
|
|
main: 'dist/index.js'
|