Documentation ¶
Index ¶
- Constants
- Variables
- func Commands(con *console.SliverClient) []*cobra.Command
- func EventTypeToTitle(eventType string) string
- func GetReactionFilePath() string
- func LoadReactions() (int, error)
- func ReactionCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ReactionIDCompleter(_ *console.SliverClient) carapace.Action
- func ReactionReloadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ReactionSaveCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ReactionSetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func ReactionUnsetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
- func SaveReactions(reactions []core.Reaction) error
Constants ¶
View Source
const (
ReactionFileName = "reactions.json"
)
Variables ¶
View Source
var ErrNonReactableEvent = errors.New("non-reactable event type")
ErrNonReactableEvent - Event does not exist or is not supported by reactions.
Functions ¶
func Commands ¶
func Commands(con *console.SliverClient) []*cobra.Command
Commands returns the “ command and its subcommands.
func EventTypeToTitle ¶
EventTypeToTitle - Convert an eventType to a more human friendly string.
func LoadReactions ¶
LoadReactions - Save the reactions to the reaction file.
func ReactionCmd ¶
func ReactionCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ReactionCmd - Manage reactions to events.
func ReactionIDCompleter ¶
func ReactionIDCompleter(_ *console.SliverClient) carapace.Action
ReactionIDCompleter completes saved/available reaction IDs.
func ReactionReloadCmd ¶
func ReactionReloadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ReactionSaveCmd - Manage reactions to events.
func ReactionSaveCmd ¶
func ReactionSaveCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ReactionSaveCmd - Manage reactions to events.
func ReactionSetCmd ¶
func ReactionSetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ReactionSetCmd - Set a reaction upon an event.
func ReactionUnsetCmd ¶
func ReactionUnsetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)
ReactionUnsetCmd - Unset a reaction upon an event.
func SaveReactions ¶
SaveReactions - Save the reactions to the reaction file.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.