diff options
author | Sacha Aury - Wolfman <sacha.aury@gmail.com> | 2017-06-26 20:07:27 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-06-26 20:07:27 +0200 |
commit | c17512b7ab759ab0fba0ecc8be20ff829946bb24 (patch) | |
tree | 287e012a2b6c95adb0a9cb36edc0e9e1213befea /bridge/config | |
parent | 1b837b3dc7579351a6018b52b58613c446ce08a5 (diff) | |
download | matterbridge-msglm-c17512b7ab759ab0fba0ecc8be20ff829946bb24.tar.gz matterbridge-msglm-c17512b7ab759ab0fba0ecc8be20ff829946bb24.tar.bz2 matterbridge-msglm-c17512b7ab759ab0fba0ecc8be20ff829946bb24.zip |
Add webhook posting mode for discord. (#204)
Using it implies to configure a Webhook on discord and set the parameter :
- WebhookURL (New parameter, discord-specific)
Discord API does not allow to change the name of the user posting, but webhooks does.
This makes the relay much more elegant, even if we might lose some more advanced features.
Signed-off-by: saury07 <sacha.aury@gmail.com>
Diffstat (limited to 'bridge/config')
-rw-r--r-- | bridge/config/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 246d6b82..6244dd6a 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -77,6 +77,7 @@ type Protocol struct { UseSASL bool // IRC UseTLS bool // IRC UseFirstName bool // telegram + WebhookURL string // discord } type ChannelOptions struct { |