Calamity.Commands.Context
Description
Command invokation context
data Context Source #
Invokation context for commands
Constructors
Fields
The message that the command was invoked from
If the command was sent in a guild, this will be present
The member that invoked the command, if in a guild
The channel the command was invoked from
The user that invoked the command
The command that was invoked
The prefix that was used to invoke the command
The message remaining after consuming the prefix
Defined in Calamity.Commands.Context
Methods
showsPrec :: Int -> Context -> ShowS #
show :: Context -> String #
showList :: [Context] -> ShowS #
Associated Types
type Rep Context :: Type -> Type #
from :: Context -> Rep Context x #
to :: Rep Context x -> Context #
showbPrec :: Int -> Context -> Builder
showb :: Context -> Builder
showbList :: [Context] -> Builder
showtPrec :: Int -> Context -> Text
showt :: Context -> Text
showtList :: [Context] -> Text
showtlPrec :: Int -> Context -> Text
showtl :: Context -> Text
showtlList :: [Context] -> Text
getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member (Error RestError) r) => Context -> Sem r (Snowflake Channel) Source #