summaryrefslogtreecommitdiffstats
path: root/bridge/discord/discord.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-24 22:38:27 +0100
committerWim <wim@42.be>2018-02-27 23:22:10 +0100
commitd62f49d1fc3820d791f3d7cebf4fa3b6b2857707 (patch)
treed1c9d0851b2edce0afc5d2d9b97c04f2194f7529 /bridge/discord/discord.go
parent63b88e77f20e2869d3c9bf136a0c9fa84980ca69 (diff)
downloadmatterbridge-msglm-d62f49d1fc3820d791f3d7cebf4fa3b6b2857707.tar.gz
matterbridge-msglm-d62f49d1fc3820d791f3d7cebf4fa3b6b2857707.tar.bz2
matterbridge-msglm-d62f49d1fc3820d791f3d7cebf4fa3b6b2857707.zip
Skip events for webhook
Diffstat (limited to 'bridge/discord/discord.go')
-rw-r--r--bridge/discord/discord.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index f4fc8e27..eb74dd85 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -128,6 +128,10 @@ func (b *bdiscord) Send(msg config.Message) (string, error) {
// Use webhook to send the message
if wID != "" {
+ // skip events
+ if msg.Event != "" {
+ return "", nil
+ }
flog.Debugf("Broadcasting using Webhook")
err := b.c.WebhookExecute(
wID,