calamity-0.1.9.1: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Commands.Check

Description

Command invokation preconditions

Documentation

data Check Source #

Constructors

MkCheck 

Fields

Instances

Instances details
Generic Check Source # 
Instance details

Defined in Calamity.Commands.Check

Associated Types

type Rep Check :: Type -> Type #

Methods

from :: Check -> Rep Check x #

to :: Rep Check x -> Check #

type Rep Check Source # 
Instance details

Defined in Calamity.Commands.Check

type Rep Check = D1 ('MetaData "Check" "Calamity.Commands.Check" "calamity-0.1.9.1-inplace" 'False) (C1 ('MetaCons "MkCheck" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "callback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Context -> IO (Maybe Text)))))

buildCheck :: Member (Final IO) r => Text -> (Context -> Sem r (Maybe Text)) -> Sem r Check Source #

runCheck :: Member (Embed IO) r => Context -> Check -> Sem r (Either CommandError ()) Source #