summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorDuco van Amstel <duco.vanamstel@gmail.com>2019-03-12 21:52:36 +0000
committerWim <wim@42.be>2019-03-12 22:52:36 +0100
commit74699a8262ef9bcc44046238ba43267620fd8a8e (patch)
tree8e0611275edd2fbd00ca3f93c27a0915ec01a0eb /bridge/slack/slack.go
parenteabf2a45820eef497b2a2f19c27d801a29bfaeea (diff)
downloadmatterbridge-msglm-74699a8262ef9bcc44046238ba43267620fd8a8e.tar.gz
matterbridge-msglm-74699a8262ef9bcc44046238ba43267620fd8a8e.tar.bz2
matterbridge-msglm-74699a8262ef9bcc44046238ba43267620fd8a8e.zip
Split-out Slack user and channel management (#762)
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 6ab70a1d..860f4942 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -351,7 +351,7 @@ func (b *Bslack) updateTopicOrPurpose(msg *config.Message, channelInfo *slack.Ch
if err == nil {
return nil
}
- if err = b.handleRateLimit(err); err != nil {
+ if err = handleRateLimit(b.Log, err); err != nil {
return err
}
}
@@ -392,7 +392,7 @@ func (b *Bslack) deleteMessage(msg *config.Message, channelInfo *slack.Channel)
return true, nil
}
- if err = b.handleRateLimit(err); err != nil {
+ if err = handleRateLimit(b.Log, err); err != nil {
b.Log.Errorf("Failed to delete user message from Slack: %#v", err)
return true, err
}
@@ -411,7 +411,7 @@ func (b *Bslack) editMessage(msg *config.Message, channelInfo *slack.Channel) (b
return true, nil
}
- if err = b.handleRateLimit(err); err != nil {
+ if err = handleRateLimit(b.Log, err); err != nil {
b.Log.Errorf("Failed to edit user message on Slack: %#v", err)
return true, err
}
@@ -431,7 +431,7 @@ func (b *Bslack) postMessage(msg *config.Message, channelInfo *slack.Channel) (s
return id, nil
}
- if err = b.handleRateLimit(err); err != nil {
+ if err = handleRateLimit(b.Log, err); err != nil {
b.Log.Errorf("Failed to sent user message to Slack: %#v", err)
return "", err
}