mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 09:20:27 +00:00
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.
This commit is contained in:
parent
1a3c57a031
commit
c23252ab53
@ -142,12 +142,16 @@ func (b *Bdiscord) Connect() error {
|
||||
}
|
||||
|
||||
b.canEditWebhooks = len(channelsDenied) == 0
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user