Revert "Disable webhook editing (#1296)" (discord)

This reverts commit c23252ab53.
This commit is contained in:
Qais Patankar 2020-11-22 20:26:49 +00:00 committed by Wim
parent 41b4e64be9
commit 611fb279bc

View File

@ -159,16 +159,12 @@ func (b *Bdiscord) Connect() error {
} }
b.canEditWebhooks = len(channelsDenied) == 0 b.canEditWebhooks = len(channelsDenied) == 0
b.canEditWebhooks = false
b.Log.Info("Webhook editing is disabled because of ratelimit issues")
/*
if b.canEditWebhooks { if b.canEditWebhooks {
b.Log.Info("Can manage webhooks; will edit channel for global webhook on send") b.Log.Info("Can manage webhooks; will edit channel for global webhook on send")
} else { } else {
b.Log.Warn("Can't manage webhooks; won't edit channel for global webhook on send") 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.Log.Warn("Can't manage webhooks in channels: ", strings.Join(channelsDenied, ", "))
} }
*/
} }
b.channelsMutex.RUnlock() b.channelsMutex.RUnlock()