fernandod1/Instagram-to-discord

@everyone mention when new image is added

BigToeJoe88 opened this issue ยท 5 comments

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
jb3/webhook-discord#17 (comment)

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)