diff options
Diffstat (limited to 'bridge/slack')
-rw-r--r-- | bridge/slack/slack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 4c72a90c..f16aa055 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -108,14 +108,14 @@ func (b *Bslack) Disconnect() error { } -func (b *Bslack) JoinChannel(channel string) error { +func (b *Bslack) JoinChannel(channel config.ChannelInfo) error { // we can only join channels using the API if b.Config.WebhookURL == "" && b.Config.WebhookBindAddress == "" { if strings.HasPrefix(b.Config.Token, "xoxb") { // TODO check if bot has already joined channel return nil } - _, err := b.sc.JoinChannel(channel) + _, err := b.sc.JoinChannel(channel.Name) if err != nil { if err.Error() != "name_taken" { return err |