mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[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:
@@ -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")}
|
||||
|
||||
Reference in New Issue
Block a user