Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AbsentCommand ¶
type AbsentCommand struct {
// contains filtered or unexported fields
}
func (*AbsentCommand) HandleCommand ¶
func (c *AbsentCommand) HandleCommand(ctx context.Context, cmd cmdroute.CommandData) *api.InteractionResponseData
func (*AbsentCommand) RegisterCommand ¶
func (c *AbsentCommand) RegisterCommand(router *cmdroute.Router) api.CreateCommandData
type Command ¶
type Command interface { RegisterCommand(router *cmdroute.Router) api.CreateCommandData HandleCommand(ctx context.Context, cmd cmdroute.CommandData) *api.InteractionResponseData }
func NewAbsentCommand ¶
func NewAbsentCommand(p CommandParams) (Command, error)
func NewFivenetCommand ¶
func NewFivenetCommand(p CommandParams) (Command, error)
func NewHelpCommand ¶
func NewHelpCommand(p CommandParams) (Command, error)
func NewSyncCommand ¶
func NewSyncCommand(p CommandParams) (Command, error)
type CommandFactory ¶
type CommandFactory = func(p CommandParams) (Command, error)
type CommandParams ¶
type FivenetCommand ¶
type FivenetCommand struct {
// contains filtered or unexported fields
}
func (*FivenetCommand) HandleCommand ¶
func (c *FivenetCommand) HandleCommand(ctx context.Context, cmd cmdroute.CommandData) *api.InteractionResponseData
func (*FivenetCommand) RegisterCommand ¶
func (c *FivenetCommand) RegisterCommand(router *cmdroute.Router) api.CreateCommandData
type HelpCommand ¶
type HelpCommand struct {
// contains filtered or unexported fields
}
func (*HelpCommand) HandleCommand ¶
func (c *HelpCommand) HandleCommand(ctx context.Context, cmd cmdroute.CommandData) *api.InteractionResponseData
func (*HelpCommand) RegisterCommand ¶
func (c *HelpCommand) RegisterCommand(router *cmdroute.Router) api.CreateCommandData
type SyncCommand ¶
type SyncCommand struct {
// contains filtered or unexported fields
}
func (*SyncCommand) HandleCommand ¶
func (c *SyncCommand) HandleCommand(ctx context.Context, cmd cmdroute.CommandData) *api.InteractionResponseData
func (*SyncCommand) RegisterCommand ¶
func (c *SyncCommand) RegisterCommand(router *cmdroute.Router) api.CreateCommandData
Click to show internal directories.
Click to hide internal directories.