Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send to discord using embed - improve doc #16

Open
boly38 opened this issue Jul 10, 2022 · 0 comments
Open

send to discord using embed - improve doc #16

boly38 opened this issue Jul 10, 2022 · 0 comments

Comments

@boly38
Copy link

boly38 commented Jul 10, 2022

Hi,

I like your project, thanks for this action.

I would like to improve embed doc:

  • add a link to the discord official meaning of embed
  • add some information about field limits (ex. description max length is 4096)
  • add a sample of embed without using intermediate json file

example

      - name: Send my embed to discord channel
        uses: tsickert/[email protected]
        with:
          webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
          content: "this is embed sample"
          embed-title: "embed title"
          embed-description: "embed description"
          embed-thumbnail-url: "https://www.google.com/search?q=discord+embed"

I especially need a full working sample with embed-thumbnail-image and embed-thumbnail-url (on my side I dont see url nor image : bug?)

my original ideal is the following:

  • with action-umami-report I have to send a given "report" to discord.
  • If the report is small enough , then it can be sent using embed way.
  • Else I can use "file upload" as fallback.
  • I though it's possible using 2 conditionals steps using if expressions: step embed if report_length < 4096 // step upload file if report_length >= 4096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant