discord-hs-0.1.3: An API wrapper for Discord in Haskell

Safe HaskellNone
LanguageHaskell2010

Network.Discord.Types.Events

Description

Data structures pertaining to gateway dispatch Events

Synopsis

Documentation

data Init Source #

Represents data sent on READY event.

Constructors

Init Int User [Channel] [Guild] String 

Instances

Show Init Source # 

Methods

showsPrec :: Int -> Init -> ShowS #

show :: Init -> String #

showList :: [Init] -> ShowS #

FromJSON Init Source #

Allows Init type to be generated using a JSON response by Discord.

parseDispatch :: Payload -> Either String Event Source #

Parses JSON stuff by Discord to an event type.