webhook-discord
webhook-discord copied to clipboard
Rewrite to use Discord webhooks instead of Slack-compatible Discord webhooks
As said in the title, currently we use the /slack endpoint since when I created this library this is what I was most knowledgable with. We should now migrate this to use Discord webhook formatting.
What would be the best way to start this ? I assume we would use https://discordjs.guide/popular-topics/embeds.html#embed-preview
Not necessarily, the Discord docs are sufficient for this.
https://discordapp.com/developers/docs/resources/webhook#create-webhook, this one?
https://discordapp.com/developers/docs/resources/channel#embed-object this will be the most useful.
Does it make sense to rewrite the library if can use Discord.js and its WebhookClient. WebhookClient also supports working with the inner Discord.js MessageEmbed class.
Yes, the library will be less in size, but it seems to me that this is not a particularly weighty argument.
I think it makes sense to rewrite it, yes.
This library serves as an independent way to work with webhooks without discord.js, it gets used and has thousands of downloads on NPM.
We should continue development of this library irrelevant of the external situation with webhook libraries on NPM.