[MM-30907]: Change receiver name for (me *AwayProvider) in app/slashcommands/command_away.go to be more idiomatic. (#16383)

Automatic Merge
This commit is contained in:
Haardik Dharma
2020-11-25 11:45:17 +05:30
committed by GitHub
parent 912d059658
commit 5642d3106e

View File

@@ -20,11 +20,11 @@ func init() {
app.RegisterCommandProvider(&AwayProvider{})
}
func (me *AwayProvider) GetTrigger() string {
func (*AwayProvider) GetTrigger() string {
return CMD_AWAY
}
func (me *AwayProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
func (*AwayProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
return &model.Command{
Trigger: CMD_AWAY,
AutoComplete: true,
@@ -33,7 +33,7 @@ func (me *AwayProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Co
}
}
func (me *AwayProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
func (*AwayProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
a.SetStatusAwayIfNeeded(args.UserId, true)
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_away.success")}