عکس EhsanFox
a Github Action, Full list of Features like footer/icon/....JavaScript
موضوع‌ها
۰
فورک‌ها
۳
ستاره‌ها
۵
تاریخ ایجاد
۲ مرداد ۱۴۰۰
آخرین بروزرسانی
۶ ماه قبل
لایسنس
MIT License

Discord.js-Webhook

a Github Action, Full list of Features like footer/icon/....

What's so different?

well, i've seen all other actions, none of them supports All Input of discords like thumbnails and image, so i made this action.

Example

- name: Send Discord Message
  uses: ehsanfox/discord.js-webhook
  with:
    # Important/Required Data
    id: ${{ secrets.webhook_id }}
    token: ${{ secrets.webhook_token }}

    # Optional Data
    content: Hi, this is a text for the content
    
    # Add more options if u want...

Action Inputs

Name Optional Description
id False ID of the webhook that you recieved from Discord Channel
token False Token of the webhook that you recieved from Discord Channel
username True Username of the Webhook
avatar True a URL for Discord Webhook Avatar, PNG only Allowed
content True a Text to Be sent with the Webhook, it's not the embed.
title True Title Text which would be on the embed
url True URL of The title which is on the embed
author True an Author Text which would be on the embed
author_icon True Author Icon/Image that would be on the embed
author_url True URL of The author which is on the embed
footer True Footer Text that would be on the embed
footer_icon True Footer Icon/Image that would be on the embed
image True Image that would be on the embed
thumbnail True Image that would be on the embed as Thumbnail
color True Hex Code of a Color that would be on the embed, it would be RANDOM if it's not provided
timestamp True Enable Timestamp for the Embed
description True a Text for Description of Embed