command

package
v0.0.0-...-5de3a08 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectBotAlreadyConnectedTemplate = "The bot account is already connected to %s account `%s`. To connect to a different account, first run `/%s disconnect_bot`."
	ConnectBotSuccessTemplate          = "[Click here to link the bot's %s account.](%s/oauth2/connect_bot)"
	ConnectAlreadyConnectedTemplate    = "" /* 127-byte string literal not displayed */
	ConnectErrorMessage                = "There has been a problem while trying to connect. err="
)

Variables

This section is empty.

Functions

func Register

func Register(client *pluginapilicense.Client) error

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

Types

type Command

type Command struct {
	MSCalendar mscalendar.MSCalendar
	Context    *plugin.Context
	Args       *model.CommandArgs
	Config     *config.Config
	ChannelID  string
}

Handler handles commands

func (*Command) Handle

func (c *Command) Handle() (string, bool, error)

Handle should be called by the plugin when a command invocation is received from the Mattermost server.

Jump to

Keyboard shortcuts

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