matrix-org / matrix-org/matrix-hookshot

Feature: Edit previously sent generic webhook message (support "PATCH" request type)

Open
#1,226 1 comment 0 reactions 0 assignees View on GitHub
Generic Hook T-Enhancement
Dominant language
TypeScript
Stars
450
Forks
95
Avg merge
1d 2h
Merged PRs (30d)
23

Description

Discord webhooks have [a neat feature](https://docs.discord.com/developers/resources/webhook#edit-webhook-message) where you can edit a previously sent webhook later on by sending a "PATCH" request type.

Basically, after you do an initial "POST" webhook, the server will return an `id` field. You can then use this id when sending a PATCH to update the previously sent message.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing generic webhook flow from its initial POST and identify where the returned id is handled. Then determine how a PATCH request can use that id to update the previously sent message. Done means a previously sent generic webhook message can be edited through the documented Discord webhook behavior, with the existing flow still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.