Update command_online.go (#16493)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
93a4c7bc7e
Коммит
625185cb5b
@@ -20,11 +20,11 @@ func init() {
|
|||||||
app.RegisterCommandProvider(&OnlineProvider{})
|
app.RegisterCommandProvider(&OnlineProvider{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *OnlineProvider) GetTrigger() string {
|
func (*OnlineProvider) GetTrigger() string {
|
||||||
return CMD_ONLINE
|
return CMD_ONLINE
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *OnlineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
func (*OnlineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||||
return &model.Command{
|
return &model.Command{
|
||||||
Trigger: CMD_ONLINE,
|
Trigger: CMD_ONLINE,
|
||||||
AutoComplete: true,
|
AutoComplete: true,
|
||||||
@@ -33,7 +33,7 @@ func (me *OnlineProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *OnlineProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
func (*OnlineProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||||
a.SetStatusOnline(args.UserId, true)
|
a.SetStatusOnline(args.UserId, true)
|
||||||
|
|
||||||
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_online.success")}
|
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_online.success")}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user