diff options
-rw-r--r-- | bridge/discord/discord.go | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 2a44775f..6e43c99d 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -159,16 +159,12 @@ 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, ", ")) - } - */ + 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() |