Instagram-to-discord
Instagram-to-discord copied to clipboard
@everyone mention when new image is added
I would like to add a @everyone mention to the Discord channel when a new image is added.
I tried to use Discord webhook embed objects and mentions but not succeed. https://discord.com/developers/docs/resources/webhook#execute-webhook
Would there be any solution to this that could be included in the code?
Have you tried to add "@everyone" word to embed["title"] variable?
Pings don't work on embeds I guess. There would be another text message to be added with the embed. Any way to do that? Its something like "plainText":
in JSON embeds but I'm not too sure
I used this some time ago, and it works, apart from that, I don't know i we can ping in webhooks https://github.com/jb3/webhook-discord/issues/17#issuecomment-607771261
Yes, you can ping in webbooks. Instead of just placing @everyone, you need to put " <@everyone> " , just like for bots (without quotes).
Following up on @aternis, you can see all Discord API ping formats here (this is a discord.js documentation but the API format is the same)