discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Webhook pings do not function properly in forums. Users are not notified nor are they invited in to the thread.

Open Onahail opened this issue 1 year ago • 2 comments

Description

Pinging a user or a role as intended within a body of a forum post will invite those users in to the thread and provide a standard notification. Pinging via a webook will appropriately highlight text but nobody will be invited in to the thread itself.

Steps to Reproduce

Create a script that utilizes a webhook to a forum channel type. Ping a user or a role. You will see the white dot next to the channel that there's new messages, but anyone mentioned within that thread will not be invited. I did it using google scripts from a google forms entry. Pinged myself and a specific role, neither worked.

Expected Behavior

Anybody pinged by the webhook post will be invited to the thread and receive a notification.

Current Behavior

Message is posted, text is highlighted appropriately for a ping, but the thread is empty and no notifications are received.

Screenshots/Videos

New post by the webhook application.

image

Manual role ping within the thread itself.

image

Client and System Information

Google Chrome. Version 126.0.6478.127 (Official Build) (64-bit). Windows 11.

Onahail avatar Jul 18 '24 23:07 Onahail

I can reproduce this. Thank you for the report.

DV8FromTheWorld avatar Jul 25 '24 19:07 DV8FromTheWorld

any updates on this issue?

jozz024 avatar Oct 15 '24 05:10 jozz024

A fix for this was just merged. It will be deployed in the next 24hrs

DV8FromTheWorld avatar Oct 24 '24 15:10 DV8FromTheWorld

Hi @DV8FromTheWorld!

We have reason to believe the fix for this caused a regression in forum threads being created via webhooks.

After roughly a year of stability, we began experiencing this issue right around the time the fix was deployed, with nothing changing on our end.

A similar issue can be found here: https://github.com/discord/discord-api-docs/issues/6839

Pretty much on a daily basis over the last two weeks, and not once before, we now have a forum message posted via webhook where the original message is deleted, ie: Screenshot 2024-11-09 at 9 44 17 AM

We can't reliably reproduce the issue - it just seems to happen randomly. When it does occur, no one is able to respond to these messages. We have to dig through our application database to find what their actual content should be. We've also added logging on our end and verified that our webhook code is sending stuff to Discord correctly.

wescopeland avatar Nov 09 '24 14:11 wescopeland

Hi @DV8FromTheWorld!

We have reason to believe the fix for this caused a regression in forum threads being created via webhooks.

After roughly a year of stability, we began experiencing this issue right around the time the fix was deployed, with nothing changing on our end.

A similar issue can be found here: #6839

Pretty much on a daily basis over the last two weeks, and not once before, we now have a forum message posted via webhook where the original message is deleted, ie: Screenshot 2024-11-09 at 9 44 17 AM

We can't reliably reproduce the issue - it just seems to happen randomly. When it does occur, no one is able to respond to these messages. We have to dig through our application database to find what their actual content should be. We've also added logging on our end and verified that our webhook code is sending stuff to Discord correctly.

We are experiencing the exact same error in our Discord server. Is anyone looking in to this? This was the only thread we could find in our extensive googling of someone with the exact same issue we were having, so hoping to find a solution here, as we are stumped!

Broccoliz avatar Feb 05 '25 20:02 Broccoliz

We had to resort to disabling user pings on webhook-driven forum posts.

wescopeland avatar Feb 05 '25 20:02 wescopeland