summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-11-22 20:26:49 +0000
committerWim <wim@42.be>2020-12-13 23:19:48 +0100
commit611fb279bc3680ef9e241e913589dc9056c2f5bd (patch)
tree601e9aa4ee775f2d3b59a24a28e31e65c18bb3e3
parent41b4e64be9216f5fa6db694b7a8f47f34ca415be (diff)
downloadmatterbridge-msglm-611fb279bc3680ef9e241e913589dc9056c2f5bd.tar.gz
matterbridge-msglm-611fb279bc3680ef9e241e913589dc9056c2f5bd.tar.bz2
matterbridge-msglm-611fb279bc3680ef9e241e913589dc9056c2f5bd.zip
Revert "Disable webhook editing (#1296)" (discord)
This reverts commit c23252ab53182cc6e68086f29c7137fbc27917ee.
-rw-r--r--bridge/discord/discord.go16
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()