summaryrefslogtreecommitdiffstats
path: root/bridge/discord/handlers.go
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-11-30 05:47:02 +0000
committerWim <wim@42.be>2020-12-13 23:19:48 +0100
commit52e2f926f423295dbf95463218bed6abd94d574a (patch)
tree18b7f76ab647c73a631c257ef806513dd04e90ed /bridge/discord/handlers.go
parent611fb279bc3680ef9e241e913589dc9056c2f5bd (diff)
downloadmatterbridge-msglm-52e2f926f423295dbf95463218bed6abd94d574a.tar.gz
matterbridge-msglm-52e2f926f423295dbf95463218bed6abd94d574a.tar.bz2
matterbridge-msglm-52e2f926f423295dbf95463218bed6abd94d574a.zip
Add initial transmitter implementation (discord)
This has been tested with one webhook in one channel. Sends, edits and deletions work fine
Diffstat (limited to 'bridge/discord/handlers.go')
-rw-r--r--bridge/discord/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go
index c209da18..370b8912 100644
--- a/bridge/discord/handlers.go
+++ b/bridge/discord/handlers.go
@@ -69,7 +69,7 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
return
}
// if using webhooks, do not relay if it's ours
- if b.useWebhook() && m.Author.Bot && b.isWebhookID(m.Author.ID) {
+ if m.Author.Bot && b.transmitter.HasWebhook(m.Author.ID) {
return
}