[GH-ISSUE #302] [Feature]: Editable Notification Text #188

Closed
opened 2026-05-06 12:27:00 +02:00 by BreizhHardware · 4 comments

Originally created by @VREmma on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/302

Originally assigned to: @maziggy on GitHub.

Problem or Use Case

I'd like to be able to send pinging notifications (specifically on Discord notifications) to certain groups for certain messages.. Basically, in my workflow, I handle most errors, but anybody in the household can clear a build plate... I'd like to be able to ping the different groups in Discord messages, depending on the message type. Maybe even having custom Content... It would also be nice to be able to attach an image of the build plate at the end of jobs to the message (it looks possible with the httpx python and some simple code from the discord webhook guide at https://birdie0.github.io/discord-webhooks-guide/tools/python.html#sending-attachments )

Proposed Solution

I don't know if file based templates, or SQL based templates would be best. I also don't know what template system would be best for it (for example jinga2 or something already built in).

Alternatives Considered

Right now I just have notifications turned on for every message in that channel.. which is kinda annoying.

Feature Category

Notifications

Priority

Nice to have

Mockups or Examples

No response

Contribution

  • I would be willing to help implement this feature

Checklist

  • I have searched existing issues to ensure this feature hasn't already been requested
Originally created by @VREmma on GitHub (Feb 8, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/302 Originally assigned to: @maziggy on GitHub. ### Problem or Use Case I'd like to be able to send pinging notifications (specifically on Discord notifications) to certain groups for certain messages.. Basically, in my workflow, I handle most errors, but anybody in the household can clear a build plate... I'd like to be able to ping the different groups in Discord messages, depending on the message type. Maybe even having custom Content... It would also be nice to be able to attach an image of the build plate at the end of jobs to the message (it looks possible with the httpx python and some simple code from the discord webhook guide at https://birdie0.github.io/discord-webhooks-guide/tools/python.html#sending-attachments ) ### Proposed Solution I don't know if file based templates, or SQL based templates would be best. I also don't know what template system would be best for it (for example jinga2 or something already built in). ### Alternatives Considered Right now I just have notifications turned on for every message in that channel.. which is kinda annoying. ### Feature Category Notifications ### Priority Nice to have ### Mockups or Examples _No response_ ### Contribution - [ ] I would be willing to help implement this feature ### Checklist - [x] I have searched existing issues to ensure this feature hasn't already been requested
Author
Owner

@maziggy commented on GitHub (Feb 8, 2026):

Can you please exactly specify what you need? I'm not that familiar with Discord.

<!-- gh-comment-id:3867917673 --> @maziggy commented on GitHub (Feb 8, 2026): Can you please exactly specify what you need? I'm not that familiar with Discord.
Author
Owner

@Locxion commented on GitHub (Feb 9, 2026):

The attachment of Images (mid job or on finished jobs) is also mentioned in #306
Tagging an User or a Group with the @User/Group could be helpfull to alert specific Group/User on a Notification

<!-- gh-comment-id:3870050753 --> @Locxion commented on GitHub (Feb 9, 2026): The attachment of Images (mid job or on finished jobs) is also mentioned in #306 Tagging an User or a Group with the @User/Group could be helpfull to alert specific Group/User on a Notification
Author
Owner

@Locxion commented on GitHub (Feb 9, 2026):

Tagging or Mention (how its in discord terms) doesnt work in embeds
you need to have the UserId or the RoleId configured that you want to mention
At
github.com/maziggy/bambuddy@f094c16012/backend/app/services/notification_service.py (L347-L374)

it should look something like this

content = ""
    allowed_mentions = {"parse": []}
    if user_id:
        content = f"<@{user_id}>"
        allowed_mentions = {
            "users": [user_id]
        }

    data = {
        "content": content,
        "allowed_mentions": allowed_mentions,
        "embeds": [
            {
                "title": title,
                "description": message,
                "color": 0x00AE42
            }
        ]
    }

or to mention a role

data = {
    "content": "<@111> <@222> <@&333>",
    "allowed_mentions": {
        "users": ["111", "222"],
        "roles": ["333"]
    },
    "embeds": [...]
}

also to mention a user/role the webhook have to have the permission allowed_mentions

<!-- gh-comment-id:3870149842 --> @Locxion commented on GitHub (Feb 9, 2026): Tagging or Mention (how its in discord terms) doesnt work in embeds you need to have the UserId or the RoleId configured that you want to mention At https://github.com/maziggy/bambuddy/blob/f094c160121aeccf833b6a55164a2f1d3828c601/backend/app/services/notification_service.py#L347-L374 it should look something like this ``` content = "" allowed_mentions = {"parse": []} if user_id: content = f"<@{user_id}>" allowed_mentions = { "users": [user_id] } data = { "content": content, "allowed_mentions": allowed_mentions, "embeds": [ { "title": title, "description": message, "color": 0x00AE42 } ] } ``` or to mention a role ``` data = { "content": "<@111> <@222> <@&333>", "allowed_mentions": { "users": ["111", "222"], "roles": ["333"] }, "embeds": [...] } ``` also to mention a user/role the webhook have to have the permission `allowed_mentions`
Author
Owner

@github-actions[bot] commented on GitHub (Mar 3, 2026):

This issue has been marked as stale due to inactivity. It will be closed in 7 days if there is no further activity.

<!-- gh-comment-id:3987971823 --> @github-actions[bot] commented on GitHub (Mar 3, 2026): This issue has been marked as stale due to inactivity. It will be closed in 7 days if there is no further activity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#188
No description provided.