calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.Gateway.Types

Description

Types for shards

Documentation

data ShardMsg Source #

Instances
Show ShardMsg Source # 
Instance details

Defined in Calamity.Gateway.Types

Generic ShardMsg Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep ShardMsg :: Type -> Type #

Methods

from :: ShardMsg -> Rep ShardMsg x #

to :: Rep ShardMsg x -> ShardMsg #

type Rep ShardMsg Source # 
Instance details

Defined in Calamity.Gateway.Types

data ReceivedDiscordMessage Source #

Instances
Show ReceivedDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

Generic ReceivedDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep ReceivedDiscordMessage :: Type -> Type #

FromJSON ReceivedDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep ReceivedDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

data SentDiscordMessage Source #

Instances
Show SentDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

Generic SentDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep SentDiscordMessage :: Type -> Type #

ToJSON SentDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep SentDiscordMessage Source # 
Instance details

Defined in Calamity.Gateway.Types

data DispatchType Source #

Instances
Enum DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

Eq DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

Show DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

Generic DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep DispatchType :: Type -> Type #

ToJSON DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

FromJSON DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep DispatchType = D1 (MetaData "DispatchType" "Calamity.Gateway.Types" "calamity-0.1.0.0-inplace" False) (((((C1 (MetaCons "READY" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CHANNEL_CREATE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "CHANNEL_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CHANNEL_DELETE" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "CHANNEL_PINS_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_CREATE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "GUILD_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_DELETE" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "GUILD_BAN_ADD" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_BAN_REMOVE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "GUILD_EMOJIS_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_INTEGRATIONS_UPDATE" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "GUILD_MEMBER_ADD" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_MEMBER_REMOVE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "GUILD_MEMBER_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_MEMBERS_CHUNK" PrefixI False) (U1 :: Type -> Type))))) :+: ((((C1 (MetaCons "GUILD_ROLE_CREATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GUILD_ROLE_UPDATE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "GUILD_ROLE_DELETE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "MESSAGE_CREATE" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "MESSAGE_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "MESSAGE_DELETE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "MESSAGE_DELETE_BULK" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "MESSAGE_REACTION_ADD" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "MESSAGE_REACTION_REMOVE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "MESSAGE_REACTION_REMOVE_ALL" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "PRESENCE_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "TYPING_START" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "USER_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "VOICE_STATE_UPDATE" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "VOICE_SERVER_UPDATE" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "WEBHOOKS_UPDATE" PrefixI False) (U1 :: Type -> Type))))))

data IdentifyData Source #

Instances
Show IdentifyData Source # 
Instance details

Defined in Calamity.Gateway.Types

Generic IdentifyData Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep IdentifyData :: Type -> Type #

ToJSON IdentifyData Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep IdentifyData Source # 
Instance details

Defined in Calamity.Gateway.Types

data StatusUpdateData Source #

Constructors

StatusUpdateData 

Fields

data ResumeData Source #

Constructors

ResumeData 

Fields

data RequestGuildMembersData Source #

data IdentifyProps Source #

Constructors

IdentifyProps 

Fields

Instances
Show IdentifyProps Source # 
Instance details

Defined in Calamity.Gateway.Types

Generic IdentifyProps Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep IdentifyProps :: Type -> Type #

ToJSON IdentifyProps Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep IdentifyProps Source # 
Instance details

Defined in Calamity.Gateway.Types

type Rep IdentifyProps = D1 (MetaData "IdentifyProps" "Calamity.Gateway.Types" "calamity-0.1.0.0-inplace" False) (C1 (MetaCons "IdentifyProps" PrefixI True) (S1 (MetaSel (Just "browser") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "device") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))