Documentation
¶
Overview ¶
Package macro provides functionality for managing templated text responses and actions.
Index ¶
- type Manager
- func (m *Manager) Create(name, messageContent string, userID, teamID *int, visibility string, ...) (models.Macro, error)
- func (m *Manager) Delete(id int) error
- func (m *Manager) Get(id int) (models.Macro, error)
- func (m *Manager) GetAll() ([]models.Macro, error)
- func (m *Manager) IncrementUsageCount(id int) error
- func (m *Manager) Update(id int, name, messageContent string, userID, teamID *int, visibility string, ...) (models.Macro, error)
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the macro manager.
func (*Manager) Create ¶
func (m *Manager) Create(name, messageContent string, userID, teamID *int, visibility string, visibleWhen []string, actions json.RawMessage) (models.Macro, error)
Create adds a new macro.
func (*Manager) IncrementUsageCount ¶
IncrementUsageCount increments the usage count of a macro.
Click to show internal directories.
Click to hide internal directories.