calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Gateway.Types

Description

Types for shards

Documentation

data ShardMsg Source #

Instances

Instances details
Show ShardMsg Source # 
Instance details

Defined in Calamity.Gateway.Types

data DispatchType Source #

Instances

Instances details
FromJSON DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

ToJSON DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

Enum 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 #

Show DispatchType Source # 
Instance details

Defined in Calamity.Gateway.Types

Eq 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.8.0.0-inplace" 'False) (((((C1 ('MetaCons "READY" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RESUMED" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "APPLICATION_COMMAND_PERMISSIONS_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "AUTO_MODERATION_RULE_CREATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AUTO_MODERATION_RULE_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AUTO_MODERATION_RULE_DELETE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AUTO_MODERATION_ACTION_EXECUTION" '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 "THREAD_CREATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "THREAD_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "THREAD_DELETE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "THREAD_LIST_SYNC" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "THREAD_MEMBER_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "THREAD_MEMBERS_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_AUDIT_LOG_ENTRY_CREATE" '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_STICKERS_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 "GUILD_SCHEDULED_EVENT_CREATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GUILD_SCHEDULED_EVENT_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GUILD_SCHEDULED_EVENT_DELETE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GUILD_SCHEDULED_EVENT_USER_ADD" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "GUILD_SCHEDULED_EVENT_USER_REMOVE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "INTEGRATION_CREATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "INTEGRATION_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "INTEGRATION_DELETE" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "INTERACTION_CREATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "INVITE_CREATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "INVITE_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 "MESSAGE_REACTION_REMOVE_EMOJI" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PRESENCE_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "STAGE_INSTANCE_CREATE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "STAGE_INSTANCE_UPDATE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "STATE_INSTANCE_DELETE" '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 ResumeData Source #

Constructors

ResumeData 

Fields

Instances

Instances details
ToJSON ResumeData Source # 
Instance details

Defined in Calamity.Gateway.Types

Show ResumeData Source # 
Instance details

Defined in Calamity.Gateway.Types

CalamityToJSON' ResumeData Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

toPairs :: KeyValue kv => ResumeData -> [Maybe kv] Source #

data Shard Source #

Instances

Instances details
(k ~ A_Lens, a ~ OutChan ControlMessage, b ~ OutChan ControlMessage) => LabelOptic "cmdOut" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ InChan CalamityEvent, b ~ InChan CalamityEvent) => LabelOptic "evtIn" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "gateway" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ Maybe StatusUpdateData, b ~ Maybe StatusUpdateData) => LabelOptic "initialStatus" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ Intents, b ~ Intents) => LabelOptic "intents" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "shardCount" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ Int, b ~ Int) => LabelOptic "shardID" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "token" k Shard Shard a b Source # 
Instance details

Defined in Calamity.Gateway.Types

Methods

labelOptic :: Optic k NoIx Shard Shard a b #

data ShardState Source #

Instances

Instances details
(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "hbResponse" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types

(k ~ A_Lens, a ~ Maybe (Async (Maybe ())), b ~ Maybe (Async (Maybe ()))) => LabelOptic "hbThread" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types

(k ~ A_Lens, a ~ Maybe Int, b ~ Maybe Int) => LabelOptic "seqNum" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "sessionID" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types

(k ~ A_Lens, a ~ Shard, b ~ Shard) => LabelOptic "shardS" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types

(k ~ A_Lens, a ~ Maybe Connection, b ~ Maybe Connection) => LabelOptic "wsConn" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "wsHost" k ShardState ShardState a b Source # 
Instance details

Defined in Calamity.Gateway.Types