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

Calamity.Types.Model.Interaction

Description

Discord Interactions

Synopsis

Documentation

data Interaction Source #

Instances

Instances details
Show Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Generic Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Associated Types

type Rep Interaction :: Type -> Type #

FromJSON Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

HasID Interaction Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

HasID Application Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

type Rep Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

type Rep Interaction = D1 ('MetaData "Interaction" "Calamity.Types.Model.Interaction" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "Interaction" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Interaction)) :*: (S1 ('MetaSel ('Just "applicationID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Application)) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InteractionType))) :*: (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InteractionData)) :*: (S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Guild))) :*: S1 ('MetaSel ('Just "channelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Channel)))))) :*: ((S1 ('MetaSel ('Just "member") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Member)) :*: (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InteractionToken))) :*: ((S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Message))) :*: (S1 ('MetaSel ('Just "locale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "guildLocale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

data InteractionData Source #

Instances

Instances details
Show InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Generic InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Associated Types

type Rep InteractionData :: Type -> Type #

FromJSON InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

type Rep InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

data ResolvedInteractionData Source #

Instances

Instances details
Show ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Generic ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Associated Types

type Rep ResolvedInteractionData :: Type -> Type #

FromJSON ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

type Rep ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

data InteractionType Source #

Instances

Instances details
Eq InteractionType Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Show InteractionType Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Generic InteractionType Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Associated Types

type Rep InteractionType :: Type -> Type #

FromJSON InteractionType Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

type Rep InteractionType Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

type Rep InteractionType = D1 ('MetaData "InteractionType" "Calamity.Types.Model.Interaction" "calamity-0.3.0.0-inplace" 'False) ((C1 ('MetaCons "PingType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ApplicationCommandType" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MessageComponentType" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ApplicationCommandAutoCompleteType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ModalSubmitType" 'PrefixI 'False) (U1 :: Type -> Type))))

data Application Source #

Empty type to flag application IDs

Instances

Instances details
HasID Application Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

data ApplicationCommand Source #

Empty type to flag application command IDs