[MM-30914]: Change receiver name for (me *InviteProvider) in app/slashcommands/command_invite.go to be more idiomatic. (#16390)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6ed90bf1db
Коммит
06543656ea
@@ -24,11 +24,11 @@ func init() {
|
|||||||
app.RegisterCommandProvider(&InviteProvider{})
|
app.RegisterCommandProvider(&InviteProvider{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *InviteProvider) GetTrigger() string {
|
func (*InviteProvider) GetTrigger() string {
|
||||||
return CMD_INVITE
|
return CMD_INVITE
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *InviteProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
func (*InviteProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||||
return &model.Command{
|
return &model.Command{
|
||||||
Trigger: CMD_INVITE,
|
Trigger: CMD_INVITE,
|
||||||
AutoComplete: true,
|
AutoComplete: true,
|
||||||
@@ -38,7 +38,7 @@ func (me *InviteProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *InviteProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
func (*InviteProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||||
if message == "" {
|
if message == "" {
|
||||||
return &model.CommandResponse{
|
return &model.CommandResponse{
|
||||||
Text: args.T("api.command_invite.missing_message.app_error"),
|
Text: args.T("api.command_invite.missing_message.app_error"),
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user