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

Calamity.HTTP.AuditLog

Description

Audit Log endpoints

Documentation

data AuditLogRequest a where Source #

Constructors

GetAuditLog :: HasID Guild g => g -> AuditLogRequest AuditLog 

Instances

Instances details
Request (AuditLogRequest a) Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

Associated Types

type Result (AuditLogRequest a) Source #

Methods

route :: AuditLogRequest a -> Route Source #

action :: AuditLogRequest a -> Options -> String -> IO (Response ByteString) Source #

invoke :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, FromJSON (Result (AuditLogRequest a))) => AuditLogRequest a -> Sem r (Either RestError (Result (AuditLogRequest a))) Source #

type Result (AuditLogRequest a) Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

type Result (AuditLogRequest a) = a

data GetAuditLogOptions Source #

Instances

Instances details
Show GetAuditLogOptions Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

Generic GetAuditLogOptions Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

Associated Types

type Rep GetAuditLogOptions :: Type -> Type #

ToJSON GetAuditLogOptions Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

Default GetAuditLogOptions Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

type Rep GetAuditLogOptions Source # 
Instance details

Defined in Calamity.HTTP.AuditLog