mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 15:10:28 +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 = len(channelsDenied) == 0
|
||||||
if b.canEditWebhooks {
|
b.canEditWebhooks = false
|
||||||
b.Log.Info("Can manage webhooks; will edit channel for global webhook on send")
|
b.Log.Info("Webhook editing is disabled because of ratelimit issues")
|
||||||
} else {
|
/*
|
||||||
b.Log.Warn("Can't manage webhooks; won't edit channel for global webhook on send")
|
if b.canEditWebhooks {
|
||||||
b.Log.Warn("Can't manage webhooks in channels: ", strings.Join(channelsDenied, ", "))
|
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()
|
b.channelsMutex.RUnlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user