From 611fb279bc3680ef9e241e913589dc9056c2f5bd Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Sun, 22 Nov 2020 20:26:49 +0000 Subject: Revert "Disable webhook editing (#1296)" (discord) This reverts commit c23252ab53182cc6e68086f29c7137fbc27917ee. --- bridge/discord/discord.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'bridge/discord/discord.go') 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() -- cgit v1.2.3