discord-haskell-1.16.1: Write bots for Discord in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Discord.Internal.Types.Components

Description

Message components

Synopsis

Documentation

data ActionRow Source #

Container for other message Components

Instances

Instances details
FromJSON ActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON ActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read ActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show ActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Eq ActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ActionRow Source # 
Instance details

Defined in Discord.Internal.Types.Components

data Button 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

Button 

Fields

ButtonUrl 

Fields

data ButtonStyle Source #

Buttton colors.

Constructors

ButtonStylePrimary

Blurple button

ButtonStyleSecondary

Grey button

ButtonStyleSuccess

Green button

ButtonStyleDanger

Red button

Instances

Instances details
FromJSON ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON 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

Eq ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord ButtonStyle Source # 
Instance details

Defined in Discord.Internal.Types.Components

mkButton :: Text -> Text -> Button Source #

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

data SelectMenu Source #

Component type for a select menu.

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

Constructors

SelectMenu 

Fields

Instances

Instances details
FromJSON SelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON SelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read SelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show SelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Eq SelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord SelectMenu Source # 
Instance details

Defined in Discord.Internal.Types.Components

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

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

data SelectMenuData Source #

Constructors

SelectMenuDataText [SelectOption]

Text options

SelectMenuDataUser

Users

SelectMenuDataRole

Roles

SelectMenuDataMentionable

Anything mentionable (users and roles)

SelectMenuDataChannels [ChannelTypeOption]

Channels (of certain types)

data SelectOption Source #

A single option in a select menu.

Constructors

SelectOption 

Fields

Instances

Instances details
FromJSON SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON 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

Eq SelectOption Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord 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 TextInput Source #

Constructors

TextInput 

Fields

Instances

Instances details
FromJSON TextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

ToJSON TextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Read TextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Show TextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Eq TextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

Ord TextInput Source # 
Instance details

Defined in Discord.Internal.Types.Components

mkTextInput :: Text -> Text -> TextInput Source #

Create a text input from an id and a label