mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-30817: Change to idiomatic receiver names for slashcommands.OfflineProvider (#16342)
Automatic Merge
This commit is contained in:
@@ -20,11 +20,11 @@ func init() {
|
||||
app.RegisterCommandProvider(&OfflineProvider{})
|
||||
}
|
||||
|
||||
func (me *OfflineProvider) GetTrigger() string {
|
||||
func (*OfflineProvider) GetTrigger() string {
|
||||
return CMD_OFFLINE
|
||||
}
|
||||
|
||||
func (me *OfflineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||
func (*OfflineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||
return &model.Command{
|
||||
Trigger: CMD_OFFLINE,
|
||||
AutoComplete: true,
|
||||
@@ -33,7 +33,7 @@ func (me *OfflineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model
|
||||
}
|
||||
}
|
||||
|
||||
func (me *OfflineProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
func (*OfflineProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
a.SetStatusOffline(args.UserId, true)
|
||||
|
||||
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_offline.success")}
|
||||
|
||||
Reference in New Issue
Block a user