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

Calamity.Types.Model.Interaction

Description

Discord Interactions

Synopsis

Documentation

data Interaction Source #

Instances

Instances details
FromJSON Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Show Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

TextShow Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

HasID Application Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

HasID Interaction Interaction Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Snowflake Application, b ~ Snowflake Application) => LabelOptic "applicationID" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe (Snowflake Channel), b ~ Maybe (Snowflake Channel)) => LabelOptic "channelID" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe InteractionData, b ~ Maybe InteractionData) => LabelOptic "data_" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

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

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Snowflake Interaction, b ~ Snowflake Interaction) => LabelOptic "id" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

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

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe Member, b ~ Maybe Member) => LabelOptic "member" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe Message, b ~ Maybe Message) => LabelOptic "message" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

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

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ InteractionType, b ~ InteractionType) => LabelOptic "type_" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe User, b ~ Maybe User) => LabelOptic "user" k Interaction Interaction a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

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

Defined in Calamity.Types.Model.Interaction

newtype InteractionToken Source #

data InteractionData Source #

Instances

Instances details
FromJSON InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Show InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

TextShow InteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe ComponentType, b ~ Maybe ComponentType) => LabelOptic "componentType" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe [Value], b ~ Maybe [Value]) => LabelOptic "components" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe CustomID, b ~ Maybe CustomID) => LabelOptic "customID" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe (Snowflake ApplicationCommand), b ~ Maybe (Snowflake ApplicationCommand)) => LabelOptic "id" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

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

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe ResolvedInteractionData, b ~ Maybe ResolvedInteractionData) => LabelOptic "resolved" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe (Snowflake ()), b ~ Maybe (Snowflake ())) => LabelOptic "targetID" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ Maybe [Text], b ~ Maybe [Text]) => LabelOptic "values" k InteractionData InteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

data ResolvedInteractionData Source #

Instances

Instances details
FromJSON ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

Show ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

TextShow ResolvedInteractionData Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ HashMap (Snowflake Attachment) Attachment, b ~ HashMap (Snowflake Attachment) Attachment) => LabelOptic "attachments" k ResolvedInteractionData ResolvedInteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ HashMap (Snowflake Channel) (Partial Channel), b ~ HashMap (Snowflake Channel) (Partial Channel)) => LabelOptic "channels" k ResolvedInteractionData ResolvedInteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ HashMap (Snowflake Member) Member, b ~ HashMap (Snowflake Member) Member) => LabelOptic "members" k ResolvedInteractionData ResolvedInteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ HashMap (Snowflake Message) (Partial Message), b ~ HashMap (Snowflake Message) (Partial Message)) => LabelOptic "messages" k ResolvedInteractionData ResolvedInteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ HashMap (Snowflake Role) Role, b ~ HashMap (Snowflake Role) Role) => LabelOptic "roles" k ResolvedInteractionData ResolvedInteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

(k ~ A_Lens, a ~ HashMap (Snowflake User) User, b ~ HashMap (Snowflake User) User) => LabelOptic "users" k ResolvedInteractionData ResolvedInteractionData a b Source # 
Instance details

Defined in Calamity.Types.Model.Interaction

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