5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 15:49:36 +00:00
matterbridge/bridge/discord
Simon THOBY cbb46293ab
Update webhook messages via new endpoint (discord)
When using the webhook, the previous method to edit a message was to
delete the old one via the classical API, and to create a new message
via the webhook. While this works, this means that editing "old" messages
lead to a mess where the chronological order is no longer respected.

This uses an hidden API explained in https://support.discord.com/hc/en-us/community/posts/360034557771
to achieve a proper edition using the webhook API.

The obvious downside of this approach is that since it is an
undocumented API for now, so there is no stability guarantee :/
2020-11-14 04:08:09 +00:00
..
discord.go Update webhook messages via new endpoint (discord) 2020-11-14 04:08:09 +00:00
handlers_test.go Fix #1049: missing space before embeds (discord) (#1124) 2020-05-07 00:19:48 +02:00
handlers.go Fix #1049: missing space before embeds (discord) (#1124) 2020-05-07 00:19:48 +02:00
helpers_test.go Split Discord bridge in multiple files (#632) 2018-12-07 23:36:01 +01:00
helpers.go Update webhook messages via new endpoint (discord) 2020-11-14 04:08:09 +00:00