calamity-0.3.0.0: A library for writing discord bots in haskell
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Presence.Activity

Description

User activities

Synopsis

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 #

ToJSON Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

FromJSON Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

NFData Activity Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

rnf :: Activity -> () #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "Activity" 'PrefixI 'True) (((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ActivityType) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "timestamps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActivityTimestamps)) :*: (S1 ('MetaSel ('Just "applicationID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake ()))) :*: S1 ('MetaSel ('Just "details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "party") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActivityParty)) :*: S1 ('MetaSel ('Just "assets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActivityAssets)))) :*: (S1 ('MetaSel ('Just "secrets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActivitySecrets)) :*: (S1 ('MetaSel ('Just "instance_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Word64)))))))

activity :: Text -> ActivityType -> Activity Source #

Make an Activity with all optional fields set to Nothing

data ActivityType Source #

Instances

Instances details
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 #

ToJSON ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

FromJSON ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

NFData ActivityType Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

rnf :: ActivityType -> () #

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.3.0.0-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) :+: (C1 ('MetaCons "Custom" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

data ActivityTimestamps Source #

Constructors

ActivityTimestamps 

Fields

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 #

ToJSON ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

FromJSON ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

NFData ActivityTimestamps Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

rnf :: ActivityTimestamps -> () #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "ActivityTimestamps" 'PrefixI 'True) (S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe UTCTime))))

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 #

ToJSON ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

FromJSON ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

NFData ActivityParty Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

rnf :: ActivityParty -> () #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "ActivityParty" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (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 #

ToJSON ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

FromJSON ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

NFData ActivityAssets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

rnf :: ActivityAssets -> () #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "ActivityAssets" 'PrefixI 'True) ((S1 ('MetaSel ('Just "largeImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "largeText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "smallImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "smallText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (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 #

ToJSON ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

FromJSON ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

NFData ActivitySecrets Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Activity

Methods

rnf :: ActivitySecrets -> () #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "ActivitySecrets" 'PrefixI 'True) (S1 ('MetaSel ('Just "join") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "spectate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "match") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))