fernandod1 / Instagram-to-discord

Monitor instagram user account and automatically post new images to discord channel via a webhook. Working 2022!
https://www.fernando.info
Other
127 stars 63 forks source link

@everyone mention when new image is added #12

Open BigToeJoe88 opened 3 years ago

BigToeJoe88 commented 3 years ago

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?

fernandod1 commented 3 years ago

Have you tried to add "@everyone" word to embed["title"] variable?

InvisibleOS commented 3 years ago

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

ArvindAROO commented 3 years ago

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

aternis commented 3 years ago

Yes, you can ping in webbooks. Instead of just placing @everyone, you need to put " <@everyone> " , just like for bots (without quotes).

timpiglowski commented 2 years ago

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)