discord-haskell-1.12.0: 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

data InteractionDataApplicationCommand Source #

data InteractionDataApplicationCommandOptions Source #

Either subcommands and groups, or values.

data InteractionDataApplicationCommandOptionSubcommandOrGroup Source #

Either a subcommand group or a subcommand.

Instances

Instances details
Eq 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.

data InteractionDataApplicationCommandOptionValue Source #

Data for a single value.

Constructors

InteractionDataApplicationCommandOptionValueString 
InteractionDataApplicationCommandOptionValueInteger 
InteractionDataApplicationCommandOptionValueBoolean 
InteractionDataApplicationCommandOptionValueUser 
InteractionDataApplicationCommandOptionValueChannel 
InteractionDataApplicationCommandOptionValueRole 
InteractionDataApplicationCommandOptionValueMentionable 
InteractionDataApplicationCommandOptionValueNumber 

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

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

interactionResponseBasic :: Text -> InteractionResponse Source #

A basic interaction response, sending back the given text.

interactionResponseMessageBasic :: Text -> InteractionResponseMessage Source #

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

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

Read InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionResponseMessageFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions