Allow webhooks to use reply messages #3282
Replies: 20 comments 20 replies
-
Not being able to receive the message reference through ?wait=1 or through editing would be completely fine for my use case, and could potentially clear some security issues on your side. For what it's worth, I've already had 5 users of my bot ask why this isn't already a thing |
Beta Was this translation helpful? Give feedback.
-
Any news if/when this might be implemented? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible for a webhook to reply to it's own messages? |
Beta Was this translation helpful? Give feedback.
-
#2410 (comment) is pretty awesome! The slash command interactions support fetching a previously created message:
And slash command message posting is based on webhook infrastructure. I'm hoping that the implementation of these endpoints has paved the road for potential future support of Webhook Replies. |
Beta Was this translation helpful? Give feedback.
-
That's good to hear! I am still here waiting for the replies system! And I got a little question, can you change the discriminator number of the webhooks, I'd be happy to see it, because I am making a global chat system, and if the user had same same and avatar, it'd become confusing, so I hope it's possible to create something like that sometime in the future. Edit: Let me know if it's possible to get all the messages a webhook sent? Thank you. |
Beta Was this translation helpful? Give feedback.
-
FYI, you can use something like an avatar generator, and salt the username with the source platform. In practice I've never seen two different people with the same name and avatar, so I wouldn't bother accounting for situations where they have the same avatar. E.g. |
Beta Was this translation helpful? Give feedback.
-
This would be really useful for bots that bridge other communication services to Discord. For example, the Matrix appservice for Discord uses webhooks to simulate users sending messages from Matrix. It would be great if a Matrix user could use the reply feature in Matrix and it would be properly represented in Discord (see matrix-org/matrix-appservice-discord#693). |
Beta Was this translation helpful? Give feedback.
-
People have made bridges already, and also for revolt.chat but yeah. |
Beta Was this translation helpful? Give feedback.
-
Why was this issue moved to a discussion? |
Beta Was this translation helpful? Give feedback.
-
This would be useful |
Beta Was this translation helpful? Give feedback.
-
This would be really useful |
Beta Was this translation helpful? Give feedback.
-
With the addition of this feature reply support for announcement channels could be added, because currently you can't publish a reply. |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
-
I don't think they'll ever implement this as developers seeking to use it are all using it for one purpose: bridging chats with competing chat apps. Better forget about it ;) |
Beta Was this translation helpful? Give feedback.
-
Please add this! |
Beta Was this translation helpful? Give feedback.
-
What are current practices for implementing approximation of this functionality as closely as possible? |
Beta Was this translation helpful? Give feedback.
-
Given that webhooks now know which user they're invoked with to handle external emojis, would now be a good time to look back at it? If it's a slash command or bot-owned webhook, then you can use the 'read message history' permission of the bot to enable or disable replies. |
Beta Was this translation helpful? Give feedback.
-
I kind of understand that Discord wouldn't want this for cross-platform bridging? But what about bridging guilds on platform though? Like we've already seen various "phone" or guild-to-guild features provided by some bots. Like there's a lot of creative use cases for it. Like even cross-channel bridging or using this in "starboard" channels would be kind of nice. |
Beta Was this translation helpful? Give feedback.
-
is it implemented? |
Beta Was this translation helpful? Give feedback.
-
Any updates? This will be a really useful feature. We need this for our bot that imitates different characters, and creating separate bots for all of them is not a good idea, with webhooks it can be any number of characters |
Beta Was this translation helpful? Give feedback.
-
A webhook is attached to a specific channel. Surely the channel association alone would be enough to say "this webhook can reply to messages in this channel"? If that's not enough, what about the (bot) user that created the webhook?
In our particular use case, we use a bot user for reading messages, but a webhook for sending messages. So we would always be able to get message IDs of non-webhook-sent messages. It's just that the webhook specifically allows for added flexibility in setting the username/avatar.
Note that WebhookExecute returns the message ID that was created (if you provide
?wait=1
), so a webhook on its own (without a bot user) is always able to get some message ID to reply to.And similarly webhooks have these other endpoints that allow a webhook to modify messages that it sent:
PATCH /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}
DELETE /webhooks/{webhook.id}/{webhook.token}/messages{message.id}
So, at the very least, the functionality to reply to a webhook's own messages seems reasonable to me. Although, it would be ideal if a webhook could reply to any messages in its channel. I would be extremely thankful if you could consider this.
Originally posted by @qaisjp in #2118 (comment)
Beta Was this translation helpful? Give feedback.
All reactions