mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 18:40:25 +00:00
Revert "Disable webhook editing (#1296)" (discord)
This reverts commit c23252ab53
.
This commit is contained in:
parent
41b4e64be9
commit
611fb279bc
@ -159,16 +159,12 @@ func (b *Bdiscord) Connect() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
b.canEditWebhooks = len(channelsDenied) == 0
|
b.canEditWebhooks = len(channelsDenied) == 0
|
||||||
b.canEditWebhooks = false
|
if b.canEditWebhooks {
|
||||||
b.Log.Info("Webhook editing is disabled because of ratelimit issues")
|
b.Log.Info("Can manage webhooks; will edit channel for global webhook on send")
|
||||||
/*
|
} else {
|
||||||
if b.canEditWebhooks {
|
b.Log.Warn("Can't manage webhooks; won't edit channel for global webhook on send")
|
||||||
b.Log.Info("Can manage webhooks; will edit channel for global webhook on send")
|
b.Log.Warn("Can't manage webhooks in channels: ", strings.Join(channelsDenied, ", "))
|
||||||
} 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