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

Discord messages appear as embeds rather than plaintext #303

Open
mikedesu opened this issue Sep 1, 2023 · 1 comment
Open

Discord messages appear as embeds rather than plaintext #303

mikedesu opened this issue Sep 1, 2023 · 1 comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@mikedesu
Copy link

mikedesu commented Sep 1, 2023

See screenshots.

Screenshot_2023-09-01_00-47-16

I managed to get the plaintext working by doing a raw curl to the webhook address with a simple JSON format message. I tried digging through the go source code but it is not my language. Wherever the JSON is constructed before doing the post, the tweak should be done there.

It'd be nice to have an option of either embeds -or- plaintext, but the reason I need plaintext is that I'm trying to chain notify-discord to matterbridge-irc. I can do it with the raw curl now, but it would be nice if I could use notify for this...matterbridge won't read the embed, but it WILL read the plaintext.

Screenshot_2023-09-01_00-47-30

@mikedesu mikedesu added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Sep 1, 2023
@0xJeti
Copy link

0xJeti commented Oct 31, 2023

@mikedesu You can get plaintext Discord message by using custom webhook:

custom:
  - id: webhook
    custom_webhook_url: "https://discord.com/api/webhooks/..."
    custom_method: POST
    custom_format: '{"content":"{{data}}"}'
    custom_headers:
      Content-Type: application/json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

2 participants