diff options
author | Wim <wim@42.be> | 2020-11-22 17:18:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 17:18:48 +0100 |
commit | c23252ab53182cc6e68086f29c7137fbc27917ee (patch) | |
tree | 3e36bbbfe23bb208f6116c81212e876895891a96 | |
parent | 1a3c57a031acfd99f9a6882478f866d249f9d39d (diff) | |
download | matterbridge-msglm-c23252ab53182cc6e68086f29c7137fbc27917ee.tar.gz matterbridge-msglm-c23252ab53182cc6e68086f29c7137fbc27917ee.tar.bz2 matterbridge-msglm-c23252ab53182cc6e68086f29c7137fbc27917ee.zip |
Disable webhook editing (discord) (#1296)
See https://github.com/42wim/matterbridge/issues/1255 and
https://github.com/qaisjp/go-discord-irc/issues/57
Webhook edits gets ratelimited which cause other problems with
matterbridge. Disabling for now.
-rw-r--r-- | bridge/discord/discord.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 0df03212..e7d98c10 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -142,12 +142,16 @@ func (b *Bdiscord) Connect() error { } b.canEditWebhooks = len(channelsDenied) == 0 - if b.canEditWebhooks { - b.Log.Info("Can manage webhooks; will edit channel for global webhook on send") - } else { - b.Log.Warn("Can't manage webhooks; won't edit channel for global webhook on send") - b.Log.Warn("Can't manage webhooks in channels: ", strings.Join(channelsDenied, ", ")) - } + b.canEditWebhooks = false + b.Log.Info("Webhook editing is disabled because of ratelimit issues") + /* + if b.canEditWebhooks { + b.Log.Info("Can manage webhooks; will edit channel for global webhook on send") + } else { + b.Log.Warn("Can't manage webhooks; won't edit channel for global webhook on send") + b.Log.Warn("Can't manage webhooks in channels: ", strings.Join(channelsDenied, ", ")) + } + */ } b.channelsMutex.RUnlock() |