5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-25 07:15:43 +00:00
matterbridge/bridge
Qais Patankar e60949ff3f Support webhook message deletions (discord) (#853)
* Support webhook message deletions (discord)

Messages sent via webhook can now be deleted. It seems it can do this
without any special permissions.

This copies discordgo.WebhookExecute and makes it support the returning
of discordgo.Message.

A pull request has been sent upstream, so we should use that if
@bwmariin accepts the pull request:

https://github.com/bwmarrin/discordgo/pull/663

Changes in behaviour (webhook mode only):
- Previously messages *edited* on other platforms would just be
retransmitted as a brand new message to Discord.
- Message *edits* will now be ignored.
- Debug: message edits will now print out a "permission error".

In the future it may be good to send an "message edited" react to those
webhook messages, so at least people know that the message was edited on
other platforms. (Even though it can't actually show the new message.)

Alternatively, message edits could just send a brand new message with a
link back to the old one. This is a little ugly but it would ensure that
Discord users are able to see the edited message. These "message edit
notifications" would be sent from the bot user (not from a webhook), so
we could edit the "edit notification" if subsequent edits to the
original message are made.
2019-07-08 22:18:37 +02:00
..
api Update vendor, move to labstack/echo/v4 Fixes #698 2019-01-31 17:06:36 +01:00
config Add an option to skip the Mattermost server version check (#849) 2019-06-16 16:23:50 +02:00
discord Support webhook message deletions (discord) (#853) 2019-07-08 22:18:37 +02:00
gitter Fix golint linter issues and enable it in CI (#593) 2018-11-15 20:43:43 +01:00
helper Trim <p> and </p> tags (matrix). Closes #686 (#753) 2019-03-03 00:29:29 +01:00
irc Add scripting (tengo) support for every outgoing message (#806) 2019-04-19 18:27:31 +02:00
matrix Detect html nicks in RemoteNickFormat (matrix). Fixes #696 (#719) 2019-02-17 21:48:32 +01:00
mattermost Add an option to skip the Mattermost server version check (#849) 2019-06-16 16:23:50 +02:00
rocketchat Add useraction support (rocketchat). Closes #772 (#794) 2019-04-08 23:30:22 +02:00
slack Fix regression in autojoining with legacy tokens (slack). Fixes #651 (#848) 2019-06-14 00:42:55 +02:00
sshchat Make all loggers derive from non-default instance (#728) 2019-02-23 22:51:27 +01:00
steam Refactor steam bridge (#630) 2018-12-07 23:48:24 +01:00
telegram Handle nil message (telegram). Fixes #777 2019-04-05 00:04:08 +02:00
whatsapp Fix noisy whatsapp error logging 2019-06-14 00:02:32 +02:00
xmpp Keep connection state. Fixes #856 2019-06-30 18:34:41 +02:00
zulip Need to specify /topic:mytopic for channel configuration (zulip). (#751) 2019-03-02 20:31:38 +01:00
bridge.go Make all loggers derive from non-default instance (#728) 2019-02-23 22:51:27 +01:00