Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AuditLog = AuditLog {}
- data AuditLogEntry = AuditLogEntry {}
- data AuditLogChange = AuditLogChange {}
- data AuditLogEntryOptions
- data AuditLogTiming
- data GetAuditLogOpts = GetAuditLogOpts {}
- newtype AuditLogEvent = MkAuditLogEvent Int
- toAuditLogEvent :: Int -> Maybe AuditLogEvent
Documentation
Audit log object, along with the entries it also contains referenced users, integrations [...] and so on
data AuditLogEntry Source #
An audit log entry object, so to speak the actual event that took place
Instances
FromJSON AuditLogEntry Source # | |
Defined in Discord.Internal.Types.AuditLog parseJSON :: Value -> Parser AuditLogEntry # parseJSONList :: Value -> Parser [AuditLogEntry] # | |
Read AuditLogEntry Source # | |
Defined in Discord.Internal.Types.AuditLog readsPrec :: Int -> ReadS AuditLogEntry # readList :: ReadS [AuditLogEntry] # | |
Show AuditLogEntry Source # | |
Defined in Discord.Internal.Types.AuditLog showsPrec :: Int -> AuditLogEntry -> ShowS # show :: AuditLogEntry -> String # showList :: [AuditLogEntry] -> ShowS # | |
Eq AuditLogEntry Source # | |
Defined in Discord.Internal.Types.AuditLog (==) :: AuditLogEntry -> AuditLogEntry -> Bool # (/=) :: AuditLogEntry -> AuditLogEntry -> Bool # |
data AuditLogChange Source #
A change object, new value and old value fields are of Aesons Value
type,
because it can be pretty much any value from discord api
Instances
FromJSON AuditLogChange Source # | |
Defined in Discord.Internal.Types.AuditLog parseJSON :: Value -> Parser AuditLogChange # parseJSONList :: Value -> Parser [AuditLogChange] # | |
Read AuditLogChange Source # | |
Defined in Discord.Internal.Types.AuditLog readsPrec :: Int -> ReadS AuditLogChange # readList :: ReadS [AuditLogChange] # | |
Show AuditLogChange Source # | |
Defined in Discord.Internal.Types.AuditLog showsPrec :: Int -> AuditLogChange -> ShowS # show :: AuditLogChange -> String # showList :: [AuditLogChange] -> ShowS # | |
Eq AuditLogChange Source # | |
Defined in Discord.Internal.Types.AuditLog (==) :: AuditLogChange -> AuditLogChange -> Bool # (/=) :: AuditLogChange -> AuditLogChange -> Bool # |
data AuditLogEntryOptions Source #
Optional data for the Audit Log Entry object
Instances
FromJSON AuditLogEntryOptions Source # | |
Defined in Discord.Internal.Types.AuditLog | |
Read AuditLogEntryOptions Source # | |
Show AuditLogEntryOptions Source # | |
Defined in Discord.Internal.Types.AuditLog showsPrec :: Int -> AuditLogEntryOptions -> ShowS # show :: AuditLogEntryOptions -> String # showList :: [AuditLogEntryOptions] -> ShowS # | |
Eq AuditLogEntryOptions Source # | |
Defined in Discord.Internal.Types.AuditLog (==) :: AuditLogEntryOptions -> AuditLogEntryOptions -> Bool # (/=) :: AuditLogEntryOptions -> AuditLogEntryOptions -> Bool # |
data AuditLogTiming Source #
Instances
Read AuditLogTiming Source # | |
Defined in Discord.Internal.Types.AuditLog readsPrec :: Int -> ReadS AuditLogTiming # readList :: ReadS [AuditLogTiming] # | |
Show AuditLogTiming Source # | |
Defined in Discord.Internal.Types.AuditLog showsPrec :: Int -> AuditLogTiming -> ShowS # show :: AuditLogTiming -> String # showList :: [AuditLogTiming] -> ShowS # | |
Eq AuditLogTiming Source # | |
Defined in Discord.Internal.Types.AuditLog (==) :: AuditLogTiming -> AuditLogTiming -> Bool # (/=) :: AuditLogTiming -> AuditLogTiming -> Bool # | |
Ord AuditLogTiming Source # | |
Defined in Discord.Internal.Types.AuditLog compare :: AuditLogTiming -> AuditLogTiming -> Ordering # (<) :: AuditLogTiming -> AuditLogTiming -> Bool # (<=) :: AuditLogTiming -> AuditLogTiming -> Bool # (>) :: AuditLogTiming -> AuditLogTiming -> Bool # (>=) :: AuditLogTiming -> AuditLogTiming -> Bool # max :: AuditLogTiming -> AuditLogTiming -> AuditLogTiming # min :: AuditLogTiming -> AuditLogTiming -> AuditLogTiming # |
data GetAuditLogOpts Source #
Options for GetAuditLog
request
Instances
Read GetAuditLogOpts Source # | |
Defined in Discord.Internal.Types.AuditLog | |
Show GetAuditLogOpts Source # | |
Defined in Discord.Internal.Types.AuditLog showsPrec :: Int -> GetAuditLogOpts -> ShowS # show :: GetAuditLogOpts -> String # showList :: [GetAuditLogOpts] -> ShowS # | |
Default GetAuditLogOpts Source # | |
Defined in Discord.Internal.Types.AuditLog def :: GetAuditLogOpts # | |
Eq GetAuditLogOpts Source # | |
Defined in Discord.Internal.Types.AuditLog (==) :: GetAuditLogOpts -> GetAuditLogOpts -> Bool # (/=) :: GetAuditLogOpts -> GetAuditLogOpts -> Bool # |
newtype AuditLogEvent Source #
Instances
FromJSON AuditLogEvent Source # | |
Defined in Discord.Internal.Types.AuditLog parseJSON :: Value -> Parser AuditLogEvent # parseJSONList :: Value -> Parser [AuditLogEvent] # | |
Read AuditLogEvent Source # | |
Defined in Discord.Internal.Types.AuditLog readsPrec :: Int -> ReadS AuditLogEvent # readList :: ReadS [AuditLogEvent] # | |
Show AuditLogEvent Source # | |
Defined in Discord.Internal.Types.AuditLog showsPrec :: Int -> AuditLogEvent -> ShowS # show :: AuditLogEvent -> String # showList :: [AuditLogEvent] -> ShowS # | |
Eq AuditLogEvent Source # | |
Defined in Discord.Internal.Types.AuditLog (==) :: AuditLogEvent -> AuditLogEvent -> Bool # (/=) :: AuditLogEvent -> AuditLogEvent -> Bool # |
toAuditLogEvent :: Int -> Maybe AuditLogEvent Source #
See https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events for more information on Events