summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nlopes/slack/info.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-01-28 00:36:22 +0100
committerWim <wim@42.be>2017-01-28 00:36:22 +0100
commit482fbac68fde1674577f2ef722773de64416e2d8 (patch)
tree3b87950a74b4c3f0413b275ca151ad49a2e950f8 /vendor/github.com/nlopes/slack/info.go
parentdcccd434276c0e7e263e7567af63d6afd2712507 (diff)
downloadmatterbridge-msglm-482fbac68fde1674577f2ef722773de64416e2d8.tar.gz
matterbridge-msglm-482fbac68fde1674577f2ef722773de64416e2d8.tar.bz2
matterbridge-msglm-482fbac68fde1674577f2ef722773de64416e2d8.zip
Update vendor (slack)
Diffstat (limited to 'vendor/github.com/nlopes/slack/info.go')
-rw-r--r--vendor/github.com/nlopes/slack/info.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/nlopes/slack/info.go b/vendor/github.com/nlopes/slack/info.go
index 445df832..49db5327 100644
--- a/vendor/github.com/nlopes/slack/info.go
+++ b/vendor/github.com/nlopes/slack/info.go
@@ -198,3 +198,13 @@ func (info Info) GetGroupByID(groupID string) *Group {
}
return nil
}
+
+// GetIMByID returns an IM given an IM id
+func (info Info) GetIMByID(imID string) *IM {
+ for _, im := range info.IMs {
+ if im.ID == imID {
+ return &im
+ }
+ }
+ return nil
+}