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

[FEATURE REQUEST] Discord compatibility with Slack webhook or new Discord integration in Ghost #9246

Closed
ghost opened this issue Nov 15, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Nov 15, 2017

Issue Summary

This is a feature suggestion, and an issue. Right now, I don't use Slack, I use Discord. Discord's webhook implementation is the same as slack. For Gitlab, they don't have Discord but I can put my discord webhook followed by a /slack and it will work normally in Gitlab's slack service. I wish the same could happen here, I try to paste my discord web hook followed by /slack in Ghost and it is limiting how the URL is. It is restricting it to be https://hooks.slack.com. I need an easy way of using that option with Discord to notify my community about the new blog posts.

Steps to Reproduce

  1. Create a Discord webhook and copy its URL
  2. Try to paste it in the Slack app in Ghost following the URL by a /slack

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Technical details:

  • Ghost Version: 1.17.1
  • Node Version: 8
  • Browser/OS: Safari on macOS High Sierra
  • Database: SQL
@kirrg001
Copy link
Contributor

kirrg001 commented Nov 16, 2017

Hey @ScarletWolf275 👋

Thanks for your interest and suggestion.

In general feature requests should be suggested and discussed in slack, however in this case your suggestion sounds like a simple enhancement of the existing slack url validation. cc @kevinansfield Is that something we could label as community enhancement?

@jloh
Copy link
Member

jloh commented Nov 16, 2017

This has been raised previously, see #7856

@kevinansfield
Copy link
Contributor

@ScarletWolf275 there's a few missing pieces of information here.

  1. Can you provide an example discord webhook URL?
  2. It wasn't clear from your explanation, is the /slack postfix something unique to GitLab or is it something to do with Discord?

@ghost
Copy link
Author

ghost commented Nov 16, 2017

Discord requires a postfix for every service. It can receive messages from slack. But that can be manipulated. For example I have https://discordapp.com/api/webhooks/XXXXXXXXXXXX/YYYYYYYYYY as the webhook. That just won't work alone... I need to add the service it is being used for so I add /slack at the end. So then I add https://discordapp.com/api/webhooks/XXXXXXXXXXXX/YYYYYYYYYY/slack to the slack team and it would work. What I'm trying to point out here is, Discord has support for Slack's embed format. Ghost has support for Slack's embed format. That's the one thing in common and you can use that in a way where you can put in the Discord webhook into Ghost followed by /slack and it would work just fine.

@kevinansfield
Copy link
Contributor

@ScarletWolf275 in case you didn't see the 1.17.3 release has a fix for this, you are able to put any valid URL into the Slack app webhook field so it will work for Discord, Mattermost, and any others 👍

@ghost
Copy link
Author

ghost commented Nov 16, 2017

Alright. Thanks!

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

3 participants