Calamity.Commands.Command
Description
Commands and stuff
data Command Source #
A command
Constructors
Fields
A list of checks that must pass for this command to be invoked
A list of the parameters the command takes, only used for constructing help messages.
A function producing the 'help' for the command.
A function that parses the context for the command, producing the input a for the command.
a
A function that given the context and the input (a) of the command, performs the action of the command.
Defined in Calamity.Commands.Command
Methods
showsPrec :: Int -> Command -> ShowS #
show :: Command -> String #
showList :: [Command] -> ShowS #
showbPrec :: Int -> Command -> Builder
showb :: Command -> Builder
showbList :: [Command] -> Builder
showtPrec :: Int -> Command -> Text
showt :: Command -> Text
showtList :: [Command] -> Text
showtlPrec :: Int -> Command -> Text
showtl :: Command -> Text
showtlList :: [Command] -> Text