[MM-30907]: Change receiver name for (me *AwayProvider) in app/slashcommands/command_away.go to be more idiomatic. (#16383)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
912d059658
Коммит
5642d3106e
@@ -20,11 +20,11 @@ func init() {
|
|||||||
app.RegisterCommandProvider(&AwayProvider{})
|
app.RegisterCommandProvider(&AwayProvider{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *AwayProvider) GetTrigger() string {
|
func (*AwayProvider) GetTrigger() string {
|
||||||
return CMD_AWAY
|
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{
|
return &model.Command{
|
||||||
Trigger: CMD_AWAY,
|
Trigger: CMD_AWAY,
|
||||||
AutoComplete: true,
|
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)
|
a.SetStatusAwayIfNeeded(args.UserId, true)
|
||||||
|
|
||||||
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_away.success")}
|
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_away.success")}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user