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

Calamity.Types.Model.Presence.Activity

Description

User activities

Documentation

data Activity Source #

Instances

Instances details
Eq Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Show Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Generic Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Associated Types

type Rep Activity :: Type -> Type #

Methods

from :: Activity -> Rep Activity x #

to :: Rep Activity x -> Activity #

FromJSON Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

parseJSON :: Value -> Parser Activity

parseJSONList :: Value -> Parser [Activity]

ToJSON Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

toJSON :: Activity -> Value

toEncoding :: Activity -> Encoding

toJSONList :: [Activity] -> Value

toEncodingList :: [Activity] -> Encoding

TextShow Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep Activity = D1 ('MetaData "Activity" "Calamity.Types.Model.Presence.Activity" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "Activity" 'PrefixI 'True) (((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ActivityType) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "timestamps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ActivityTimestamps)) :*: (S1 ('MetaSel ('Just "applicationID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake ()))) :*: S1 ('MetaSel ('Just "details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "party") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ActivityParty)) :*: S1 ('MetaSel ('Just "assets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ActivityAssets)))) :*: (S1 ('MetaSel ('Just "secrets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ActivitySecrets)) :*: (S1 ('MetaSel ('Just "instance_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)))))))

data ActivityType Source #

Constructors

Game 
Streaming 
Listening 

Instances

Instances details
Enum ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Eq ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Show ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Generic ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Associated Types

type Rep ActivityType :: Type -> Type #

FromJSON ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

parseJSON :: Value -> Parser ActivityType

parseJSONList :: Value -> Parser [ActivityType]

ToJSON ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

toJSON :: ActivityType -> Value

toEncoding :: ActivityType -> Encoding

toJSONList :: [ActivityType] -> Value

toEncodingList :: [ActivityType] -> Encoding

TextShow ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityType = D1 ('MetaData "ActivityType" "Calamity.Types.Model.Presence.Activity" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "Game" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Streaming" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Listening" 'PrefixI 'False) (U1 :: Type -> Type)))

data ActivityTimestamps Source #

Instances

Instances details
Eq ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Show ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Generic ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Associated Types

type Rep ActivityTimestamps :: Type -> Type #

FromJSON ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

parseJSON :: Value -> Parser ActivityTimestamps

parseJSONList :: Value -> Parser [ActivityTimestamps]

ToJSON ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

TextShow ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityTimestamps = D1 ('MetaData "ActivityTimestamps" "Calamity.Types.Model.Presence.Activity" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "ActivityTimestamps" 'PrefixI 'True) (S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UnixTimestamp)) :*: S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UnixTimestamp))))

data ActivityParty Source #

Constructors

ActivityParty 

Fields

Instances

Instances details
Eq ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Show ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Generic ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Associated Types

type Rep ActivityParty :: Type -> Type #

FromJSON ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

parseJSON :: Value -> Parser ActivityParty

parseJSONList :: Value -> Parser [ActivityParty]

ToJSON ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

toJSON :: ActivityParty -> Value

toEncoding :: ActivityParty -> Encoding

toJSONList :: [ActivityParty] -> Value

toEncodingList :: [ActivityParty] -> Encoding

TextShow ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityParty = D1 ('MetaData "ActivityParty" "Calamity.Types.Model.Presence.Activity" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "ActivityParty" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Int, Int)))))

data ActivityAssets Source #

Instances

Instances details
Eq ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Show ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Generic ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Associated Types

type Rep ActivityAssets :: Type -> Type #

FromJSON ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

parseJSON :: Value -> Parser ActivityAssets

parseJSONList :: Value -> Parser [ActivityAssets]

ToJSON ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

toJSON :: ActivityAssets -> Value

toEncoding :: ActivityAssets -> Encoding

toJSONList :: [ActivityAssets] -> Value

toEncodingList :: [ActivityAssets] -> Encoding

TextShow ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivityAssets = D1 ('MetaData "ActivityAssets" "Calamity.Types.Model.Presence.Activity" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "ActivityAssets" 'PrefixI 'True) ((S1 ('MetaSel ('Just "largeImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "largeText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "smallImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "smallText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

data ActivitySecrets Source #

Constructors

ActivitySecrets 

Instances

Instances details
Eq ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Show ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Generic ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Associated Types

type Rep ActivitySecrets :: Type -> Type #

FromJSON ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

parseJSON :: Value -> Parser ActivitySecrets

parseJSONList :: Value -> Parser [ActivitySecrets]

ToJSON ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

toJSON :: ActivitySecrets -> Value

toEncoding :: ActivitySecrets -> Encoding

toJSONList :: [ActivitySecrets] -> Value

toEncodingList :: [ActivitySecrets] -> Encoding

TextShow ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

type Rep ActivitySecrets = D1 ('MetaData "ActivitySecrets" "Calamity.Types.Model.Presence.Activity" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "ActivitySecrets" 'PrefixI 'True) (S1 ('MetaSel ('Just "join") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "spectate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "match") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))