Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord Webhook: add support for mentions #300

Closed
ThePrinoob opened this issue Feb 6, 2024 · 2 comments · Fixed by #455
Closed

Discord Webhook: add support for mentions #300

ThePrinoob opened this issue Feb 6, 2024 · 2 comments · Fixed by #455
Labels
enhancement New feature or request

Comments

@ThePrinoob
Copy link

Is your feature request related to a problem? Please describe.
I wanted to mention a certain role on my discord server so not everyone gets the notifications who has access. I found out that you can mention roles by adding this to the message:
<@&XXXXXXXXXXXXXX>

But this is not working because the message is sent in the title of the embed.

Describe the solution you'd like
I want that you can define a ENV variable where you can define mentions which are then sent in the description of the message.

Describe alternatives you've considered
Alternatively the message could also be sent in the description and the mention would be in the message too. The title would be something like "Palworld Server" or whatever :)

Additional context
How to mention a role: here
Discord Webhook live parser: here

@ThePrinoob ThePrinoob added the enhancement New feature or request label Feb 6, 2024
@v4de
Copy link

v4de commented Feb 8, 2024

This is a very cool idea, right now the json I am building is pretty simple.

JSON=$(jo embeds[]="$(jo title="$MESSAGE" color=$COLOR)")

We can modify it to:

JSON=$(jo embeds[]="$(jo title="$TITLE" description="$MESSAGE" color=$COLOR)")

Can create a new title for each one instead, or completely scrap the title? What do you think?

@Luatan
Copy link
Contributor

Luatan commented Feb 10, 2024

This is a very cool idea, right now the json I am building is pretty simple.

JSON=$(jo embeds[]="$(jo title="$MESSAGE" color=$COLOR)")

We can modify it to:

JSON=$(jo embeds[]="$(jo title="$TITLE" description="$MESSAGE" color=$COLOR)")

Can create a new title for each one instead, or completely scrap the title? What do you think?

How about if the title would be the script or function for example: Backup, Update and so on. Then the description can be what the script is doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants