command

package
v0.0.0-...-9979fab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(registerFunc Register) error

RegisterCommands should be called by the plugin to register all necessary commands

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command represents slash command of the plugin

func NewCommand

func NewCommand(args *model.CommandArgs, logger bot.Logger, api *pluginapi.Client, poster bot.Poster, suggester suggest.Service) *Command

NewCommand creates new command

func (*Command) Handle

func (c *Command) Handle() error

Handle .

type Register

type Register func(*model.Command) error

Register is a function that allows the runner to register commands with the mattermost server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL