From 625185cb5b8bc454006a58f1fff7b8b36cd0a11c Mon Sep 17 00:00:00 2001 From: Haardik Dharma Date: Fri, 11 Dec 2020 22:51:06 +0530 Subject: [PATCH] Update command_online.go (#16493) Co-authored-by: Mattermod --- app/slashcommands/command_online.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/slashcommands/command_online.go b/app/slashcommands/command_online.go index 7c70eb8140..0727fd7fba 100644 --- a/app/slashcommands/command_online.go +++ b/app/slashcommands/command_online.go @@ -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")}