mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-30820: Change to idiomatic receiver names for slashcommands.LeaveProvider (#16345)
Automatic Merge
This commit is contained in:
@@ -20,11 +20,11 @@ func init() {
|
||||
app.RegisterCommandProvider(&LeaveProvider{})
|
||||
}
|
||||
|
||||
func (me *LeaveProvider) GetTrigger() string {
|
||||
func (*LeaveProvider) GetTrigger() string {
|
||||
return CMD_LEAVE
|
||||
}
|
||||
|
||||
func (me *LeaveProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||
func (*LeaveProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.Command {
|
||||
return &model.Command{
|
||||
Trigger: CMD_LEAVE,
|
||||
AutoComplete: true,
|
||||
@@ -33,7 +33,7 @@ func (me *LeaveProvider) GetCommand(a *app.App, T goi18n.TranslateFunc) *model.C
|
||||
}
|
||||
}
|
||||
|
||||
func (me *LeaveProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
func (*LeaveProvider) DoCommand(a *app.App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
var channel *model.Channel
|
||||
var noChannelErr *model.AppError
|
||||
if channel, noChannelErr = a.GetChannel(args.ChannelId); noChannelErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user