Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 2c04cc70bf94116216e5c658756d1845e112293b Author: Wim <wim@42.be> Date: Sun Nov 22 17:18:48 2020 +0000 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. diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 0df0321..e7d98c1 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -14212 +14216 @@ 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()