summaryrefslogtreecommitdiffstats
path: root/cmd/platform/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/channel.go')
-rw-r--r--cmd/platform/channel.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/platform/channel.go b/cmd/platform/channel.go
index 2a10516af..fd2b097af 100644
--- a/cmd/platform/channel.go
+++ b/cmd/platform/channel.go
@@ -5,7 +5,6 @@ package main
import (
"errors"
- "github.com/mattermost/platform/api"
"github.com/mattermost/platform/app"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
@@ -166,7 +165,7 @@ func removeUserFromChannel(channel *model.Channel, user *model.User, userArg str
CommandPrintErrorln("Can't find user '" + userArg + "'")
return
}
- if err := api.RemoveUserFromChannel(user.Id, "", channel); err != nil {
+ if err := app.RemoveUserFromChannel(user.Id, "", channel); err != nil {
CommandPrintErrorln("Unable to remove '" + userArg + "' from " + channel.Name + ". Error: " + err.Error())
}
}