From a7186b9c97ded5a5ddf78ef39cdcc4633ffe44f2 Mon Sep 17 00:00:00 2001 From: davidboto Date: Thu, 23 Feb 2023 19:07:33 -0300 Subject: [PATCH] fix plugin help example - method arguments order (#19662) Co-authored-by: Mattermod Co-authored-by: Mattermost Build --- plugin/example_help_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/example_help_test.go b/plugin/example_help_test.go index b192f6e3021..a1e55f7b2f5 100644 --- a/plugin/example_help_test.go +++ b/plugin/example_help_test.go @@ -75,7 +75,7 @@ func (p *HelpPlugin) OnConfigurationChange() error { return errors.Wrapf(err, "failed to find team %s", configuration.TeamName) } - channel, err := p.API.GetChannelByName(configuration.ChannelName, team.Id, false) + channel, err := p.API.GetChannelByName(team.Id, configuration.ChannelName, false) if err != nil { return errors.Wrapf(err, "failed to find channel %s", configuration.ChannelName) }