notify icon indicating copy to clipboard operation
notify copied to clipboard

Discord messages appear as embeds rather than plaintext

Open mikedesu opened this issue 2 years ago • 1 comments

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 avatar Sep 01 '23 05:09 mikedesu

@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

0xJeti avatar Oct 31 '23 22:10 0xJeti