[MM-30908]: Change receiver name for (me *DndProvider) in app/slashcommands/command_dnd.go to be more idiomatic. (#16384)

Automatic Merge
This commit is contained in:
Haardik Dharma
2020-12-01 05:45:17 +01:00
committed by GitHub
parent cbc66c9a37
commit e5df69df27
+3 -3
View File
@@ -20,11 +20,11 @@ func init() {
app.RegisterCommandProvider(&DndProvider{})
}
func (me *DndProvider) GetTrigger() string {
func (*DndProvider) GetTrigger() string {
return CMD_DND
}
func (me *DndProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
func (*DndProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
return &model.Command{
Trigger: CMD_DND,
AutoComplete: true,
@@ -33,7 +33,7 @@ func (me *DndProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Com
}
}
func (me *DndProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
func (*DndProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
a.SetStatusDoNotDisturb(args.UserId)
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_dnd.success")}