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

Discord.Internal.Types.Interactions

Synopsis

Documentation

data Interaction Source #

data InteractionDataApplicationCommand Source #

data InteractionDataApplicationCommandOptions Source #

data InteractionDataApplicationCommandOptionSubcommandOrGroup Source #

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

Internals InteractionDataApplicationCommandOptionSubcommandOrGroup InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommandOptionSubcommand Source #

Instances

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

Internals InteractionDataApplicationCommandOptionSubcommand InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionDataApplicationCommandOptionValue Source #

Instances

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

Internals InteractionDataApplicationCommandOptionValue InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data ApplicationCommandInteractionDataValue Source #

Instances

Instances details
Eq ApplicationCommandInteractionDataValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Ord ApplicationCommandInteractionDataValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read ApplicationCommandInteractionDataValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show ApplicationCommandInteractionDataValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON ApplicationCommandInteractionDataValue Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InternalInteraction Source #

Instances

Instances details
Eq InternalInteraction Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InternalInteraction Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InternalInteraction Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InternalInteraction Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InternalInteraction Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals Interaction InternalInteraction Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionType Source #

What type of interaction has a user requested? Each requires its own type of response.

Instances

Instances details
Enum InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

Eq InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

Data InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InteractionType -> c InteractionType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InteractionType #

toConstr :: InteractionType -> Constr #

dataTypeOf :: InteractionType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InteractionType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InteractionType) #

gmapT :: (forall b. Data b => b -> b) -> InteractionType -> InteractionType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InteractionType -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InteractionType -> r #

gmapQ :: (forall d. Data d => d -> u) -> InteractionType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InteractionType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InteractionType -> m InteractionType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InteractionType -> m InteractionType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InteractionType -> m InteractionType #

Ord InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

Read InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

Show InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

ToJSON InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

FromJSON InteractionType Source # 
Instance details

Defined in Discord.Internal.Types.Prelude

data InternalInteractionData Source #

Constructors

InternalInteractionData 

Fields

Instances

Instances details
Eq InternalInteractionData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InternalInteractionData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InternalInteractionData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InternalInteractionData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InternalInteractionData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals InteractionDataApplicationCommand InternalInteractionData Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals InteractionDataComponent InternalInteractionData 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

data InternalInteractionDataApplicationCommandOption Source #

The application command payload for an interaction.

Instances

Instances details
Eq InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

FromJSON InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals InteractionDataApplicationCommandOptionValue InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals InteractionDataApplicationCommandOptionSubcommand InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals InteractionDataApplicationCommandOptionSubcommandOrGroup InternalInteractionDataApplicationCommandOption Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Internals InteractionDataApplicationCommandOptions [InternalInteractionDataApplicationCommandOption] Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionCallbackType Source #

What's the type of the response?

Constructors

InteractionCallbackTypePong

Responds to a PING.

InteractionCallbackTypeChannelMessageWithSource

Respond with a message to the interaction

InteractionCallbackTypeDeferredChannelMessageWithSource

Respond with a message to the interaction, after a delay. Sending this back means the interaction token lasts for 15 minutes.

InteractionCallbackTypeDeferredUpdateMessage

For components, edit the original message later.

InteractionCallbackTypeUpdateMessage

For components, edit the original message.

InteractionCallbackTypeApplicationCommandAutocompleteResult

Respond to an autocomplete interaction with suggested choices.

Instances

Instances details
Enum InteractionCallbackType Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Eq InteractionCallbackType Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Data InteractionCallbackType Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InteractionCallbackType -> c InteractionCallbackType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InteractionCallbackType #

toConstr :: InteractionCallbackType -> Constr #

dataTypeOf :: InteractionCallbackType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InteractionCallbackType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InteractionCallbackType) #

gmapT :: (forall b. Data b => b -> b) -> InteractionCallbackType -> InteractionCallbackType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InteractionCallbackType -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InteractionCallbackType -> r #

gmapQ :: (forall d. Data d => d -> u) -> InteractionCallbackType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InteractionCallbackType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InteractionCallbackType -> m InteractionCallbackType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InteractionCallbackType -> m InteractionCallbackType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InteractionCallbackType -> m InteractionCallbackType #

Read InteractionCallbackType Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionCallbackType Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

ToJSON InteractionCallbackType Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

data InteractionCallbackMessages Source #

A cut down message structure.

data InteractionCallbackDataFlag 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 InteractionCallbackDataFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Eq InteractionCallbackDataFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Read InteractionCallbackDataFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions

Show InteractionCallbackDataFlag Source # 
Instance details

Defined in Discord.Internal.Types.Interactions