• Resolved EMar

    (@sounds)


    Hi,

    Can I send new WP posts to a Discord text channel?

    I have another plugin “Feedzy” that gets rss feeds for music related news,
    And sends those feeds to WordPress as new posts.

    I copied the web-hook for one of my Discord text channels.
    Selected Post Type: Post Created, added the Discord channel web-hook URL.

    Clicked send demo, nothing happened,

    Am I doing something wrong?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ironikus

    (@ironikus)

    Hey @sounds – Thanks for reaching out.
    I just checked the discord API and it seems like you need to authenticate the request when you want to send data to Discord.
    From my understanding, its best if you use a bot as this will give you an API key: https://discord.com/developers/docs/reference

    Here’s what you can do:
    1. Head over to the “Authentication” tab within our plugin and create a new authentication template with the API Key as a method
    2. Within the API key templatte, select “Header” as a location and add “Authorization” as a key and for the value, please add “Bot XXXXXXXX” (Please replace XXXXXXXX with the API key from your Bot)
    3. Save the template and head over to the “Send Data” tab > your Webhoo URL > Settings, and select there the authentciation template for the Authentications ettings (And save them afterward)
    4. Now if you send data there, it should arrive.

    It might be possible that you need to map the data to a format required by Discord. In that case, you would need some custom code along with our plugin. With our pro version, there are two visual ways you could use (Data Mapping or Flows).

    Feel free to let me know in case you have any further questions. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Send post to Discord channel via webhook’ is closed to new replies.