Open Jakousa opened 3 years ago
This is my first time in open source I will try my best to work on your issue. Just a little suggestion please add a ReadMe.md
make a PR about readme
Already made one, please check the PR #16
Just Forked it, will try for "Fix image bridge from slack to discord"
Hey @ashutoshdhande, developing with a bridge from slack / discord can be a pain in the ass since you'll need to create guilds and slack and configure the bots. We seem to be having some trouble with the following code:
It barely works. We'd love to use discord.js instead of FormData to send the data. This is what we tried:
Even though the url is passed correctly it does not bridge the file.
According to https://discord.js.org/#/docs/main/stable/class/Webhook?scrollTo=send example something like
webhook.send({
files: ['https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048']
})
should work, but the urls from slack do not seem to work. We fetch the data from https://api.slack.com/methods/files.info
Since @Darake noticed these issues I will create a few smaller issues that should be easier to fix by eyeballing the code and may not require a local development environment. Since this tool is atm only used by our team and I don't see much traffic here, we don't mind if your PR code isn't tested in any way.
Slack - discord is missing the text sent with image. Only image is bridged. Fix pls