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

Discord.Internal.Types.Components

Synopsis

Documentation

data ComponentActionRow Source #

Instances

Instances details
Eq ComponentActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ComponentActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read ComponentActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show ComponentActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON ComponentActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

FromJSON ComponentActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

data ComponentButton Source #

Component type for a button, split into URL button and not URL button.

Don't directly send button components - they need to be within an action row.

Constructors

ComponentButton 

Fields

ComponentButtonUrl 

Fields

Instances

Instances details
Eq ComponentButton Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ComponentButton Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read ComponentButton Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show ComponentButton Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON ComponentButton Source # 
Instance details

Defined in Discord.Internal.Types.Components

FromJSON ComponentButton Source # 
Instance details

Defined in Discord.Internal.Types.Components

data ButtonStyle Source #

Buttton colors.

Constructors

ButtonStylePrimary

Blurple button

ButtonStyleSecondary

Grey button

ButtonStyleSuccess

Green button

ButtonStyleDanger

Red button

Instances

Instances details
Eq ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

FromJSON ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

mkButton :: Text -> Text -> ComponentButton Source #

Takes the label and the custom id of the button that is to be generated.

data ComponentSelectMenu Source #

Component type for a select menus.

Don't directly send select menus - they need to be within an action row.

Constructors

ComponentSelectMenu 

Fields

Instances

Instances details
Eq ComponentSelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ComponentSelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read ComponentSelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show ComponentSelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON ComponentSelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

FromJSON ComponentSelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

mkSelectMenu :: Text -> [SelectOption] -> ComponentSelectMenu Source #

Takes the custom id and the options of the select menu that is to be generated.

data SelectOption Source #

A single option in a select menu.

Constructors

SelectOption 

Fields

Instances

Instances details
Eq SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

FromJSON SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

mkSelectOption :: Text -> Text -> SelectOption Source #

Make a select option from the given label and value.

data ComponentTextInput Source #

Constructors

ComponentTextInput 

Fields

Instances

Instances details
Eq ComponentTextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ComponentTextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read ComponentTextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show ComponentTextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON ComponentTextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

FromJSON ComponentTextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components