discord-haskell-1.12.5: Write bots for Discord in Haskell
Safe HaskellNone
LanguageHaskell2010

Discord.Internal.Types.Interactions

Synopsis

Documentation

data Interaction Source #

An interaction received from discord.

Constructors

InteractionComponent 

Fields

InteractionPing 

Fields

InteractionApplicationCommand 

Fields

InteractionApplicationCommandAutocomplete 

Fields

InteractionModalSubmit 

Fields

data InteractionDataComponent Source #

Constructors

InteractionDataComponentButton 

Fields

InteractionDataComponentSelectMenu 

Fields

Instances

Instances details
Eq InteractionDataComponent Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionDataComponent Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionDataComponent Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionDataComponent Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InteractionDataComponent Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommand Source #

Instances

Instances details
Eq InteractionDataApplicationCommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionDataApplicationCommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionDataApplicationCommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionDataApplicationCommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InteractionDataApplicationCommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommandOptions Source #

Either subcommands and groups, or values.

Instances

Instances details
Eq InteractionDataApplicationCommandOptions Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionDataApplicationCommandOptions Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionDataApplicationCommandOptions Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionDataApplicationCommandOptions Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InteractionDataApplicationCommandOptions Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommandOptionSubcommandOrGroup Source #

Either a subcommand group or a subcommand.

Instances

Instances details
Eq InteractionDataApplicationCommandOptionSubcommandOrGroup Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionDataApplicationCommandOptionSubcommandOrGroup Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionDataApplicationCommandOptionSubcommandOrGroup Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionDataApplicationCommandOptionSubcommandOrGroup Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InteractionDataApplicationCommandOptionSubcommandOrGroup Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommandOptionSubcommand Source #

Data for a single subcommand.

Instances

Instances details
Eq InteractionDataApplicationCommandOptionSubcommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionDataApplicationCommandOptionSubcommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionDataApplicationCommandOptionSubcommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionDataApplicationCommandOptionSubcommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InteractionDataApplicationCommandOptionSubcommand Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommandOptionValue Source #

Data for a single value.

Constructors

InteractionDataApplicationCommandOptionValueString 
InteractionDataApplicationCommandOptionValueInteger 
InteractionDataApplicationCommandOptionValueBoolean 
InteractionDataApplicationCommandOptionValueUser 
InteractionDataApplicationCommandOptionValueChannel 
InteractionDataApplicationCommandOptionValueRole 
InteractionDataApplicationCommandOptionValueMentionable 
InteractionDataApplicationCommandOptionValueNumber 

Instances

Instances details
Eq InteractionDataApplicationCommandOptionValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionDataApplicationCommandOptionValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionDataApplicationCommandOptionValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionDataApplicationCommandOptionValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InteractionDataApplicationCommandOptionValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data ResolvedData Source #

I'm not sure what this stuff is, so you're on your own.

It's not worth the time working out how to create this stuff. If you need to extract from these values, check out the link below.

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure

Instances

Instances details
Eq ResolvedData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord ResolvedData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read ResolvedData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show ResolvedData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON ResolvedData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON ResolvedData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionResponse Source #

The data to respond to an interaction with. Unless specified otherwise, you only have three seconds to reply to an interaction before a failure state is given.

Constructors

InteractionResponsePong

ACK a Ping

InteractionResponseChannelMessage InteractionResponseMessage

Respond to an interaction with a message

InteractionResponseDeferChannelMessage

ACK an interaction and edit a response later (use CreateFollowupInteractionMessage and InteractionResponseMessage to do so). User sees loading state.

InteractionResponseDeferUpdateMessage

for components, ACK an interaction and edit the original message later; the user does not see a loading state.

InteractionResponseUpdateMessage InteractionResponseMessage

for components, edit the message the component was attached to

InteractionResponseAutocompleteResult InteractionResponseAutocomplete

respond to an autocomplete interaction with suggested choices

InteractionResponseModal InteractionResponseModalData

respond with a popup modal

Instances

Instances details
Eq InteractionResponse Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionResponse Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionResponse Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponse Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InteractionResponse Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

interactionResponseBasic :: Text -> InteractionResponse Source #

A basic interaction response, sending back the given text.

data InteractionResponseAutocomplete Source #

Instances

Instances details
Eq InteractionResponseAutocomplete Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionResponseAutocomplete Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionResponseAutocomplete Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponseAutocomplete Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InteractionResponseAutocomplete Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionResponseMessage Source #

A cut down message structure.

Instances

Instances details
Eq InteractionResponseMessage Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionResponseMessage Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionResponseMessage Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponseMessage Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InteractionResponseMessage Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

interactionResponseMessageBasic :: Text -> InteractionResponseMessage Source #

A basic interaction response, sending back the given text. This is effectively a helper function.

newtype InteractionResponseMessageFlags Source #

Instances

Instances details
Eq InteractionResponseMessageFlags Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionResponseMessageFlags Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionResponseMessageFlags Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponseMessageFlags Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InteractionResponseMessageFlags Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionResponseMessageFlag Source #

Types of flags to attach to the interaction message.

Currently the only flag is EPHERMERAL, which means only the user can see the message.

Instances

Instances details
Enum InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Eq InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionResponseModalData Source #

Instances

Instances details
Eq InteractionResponseModalData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord InteractionResponseModalData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionResponseModalData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponseModalData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InteractionResponseModalData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions