mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Update command_online.go (#16493)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
@@ -20,11 +20,11 @@ func init() {
|
||||
app.RegisterCommandProvider(&OnlineProvider{})
|
||||
}
|
||||
|
||||
func (me *OnlineProvider) GetTrigger() string {
|
||||
func (*OnlineProvider) GetTrigger() string {
|
||||
return CMD_ONLINE
|
||||
}
|
||||
|
||||
func (me *OnlineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||
func (*OnlineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||
return &model.Command{
|
||||
Trigger: CMD_ONLINE,
|
||||
AutoComplete: true,
|
||||
@@ -33,7 +33,7 @@ func (me *OnlineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.
|
||||
}
|
||||
}
|
||||
|
||||
func (me *OnlineProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
func (*OnlineProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
a.SetStatusOnline(args.UserId, true)
|
||||
|
||||
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_online.success")}
|
||||
|
||||
Reference in New Issue
Block a user