| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Discord.Internal.Types.Components
Synopsis
- data ComponentButton- = ComponentButton { }
- | ComponentButtonUrl { }
 
- data ButtonStyle
- buttonStyles :: [(ButtonStyle, InternalButtonStyle)]
- data ComponentSelectMenu = ComponentSelectMenu {}
- data ComponentActionRow
- validPartialEmoji :: Emoji -> Maybe Emoji
- data Component = Component {- componentType :: ComponentType
- componentCustomId :: Maybe Text
- componentDisabled :: Maybe Bool
- componentStyle :: Maybe InternalButtonStyle
- componentLabel :: Maybe Text
- componentEmoji :: Maybe Emoji
- componentUrl :: Maybe Text
- componentOptions :: Maybe [SelectOption]
- componentPlaceholder :: Maybe Text
- componentMinValues :: Maybe Integer
- componentMaxValues :: Maybe Integer
- componentComponents :: Maybe [Component]
 
- data ComponentType
- data InternalButtonStyle
- data Emoji = Emoji {}
- data SelectOption = SelectOption {}
- filterOutIncorrectEmoji :: Component -> Component
Documentation
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 | |
| ComponentButtonUrl | |
| Fields | |
Instances
| Eq ComponentButton Source # | |
| Defined in Discord.Internal.Types.Components Methods (==) :: ComponentButton -> ComponentButton -> Bool # (/=) :: ComponentButton -> ComponentButton -> Bool # | |
| Show ComponentButton Source # | |
| Defined in Discord.Internal.Types.Components Methods showsPrec :: Int -> ComponentButton -> ShowS # show :: ComponentButton -> String # showList :: [ComponentButton] -> ShowS # | |
data ButtonStyle Source #
Instances
| Eq ButtonStyle Source # | |
| Defined in Discord.Internal.Types.Components | |
| Read ButtonStyle Source # | |
| Defined in Discord.Internal.Types.Components Methods readsPrec :: Int -> ReadS ButtonStyle # readList :: ReadS [ButtonStyle] # readPrec :: ReadPrec ButtonStyle # readListPrec :: ReadPrec [ButtonStyle] # | |
| Show ButtonStyle Source # | |
| Defined in Discord.Internal.Types.Components Methods showsPrec :: Int -> ButtonStyle -> ShowS # show :: ButtonStyle -> String # showList :: [ButtonStyle] -> ShowS # | |
| Internals ButtonStyle InternalButtonStyle Source # | |
| Defined in Discord.Internal.Types.Components Methods toInternal :: ButtonStyle -> InternalButtonStyle Source # fromInternal :: InternalButtonStyle -> Maybe ButtonStyle Source # | |
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 | |
Instances
| Eq ComponentSelectMenu Source # | |
| Defined in Discord.Internal.Types.Components Methods (==) :: ComponentSelectMenu -> ComponentSelectMenu -> Bool # (/=) :: ComponentSelectMenu -> ComponentSelectMenu -> Bool # | |
| Read ComponentSelectMenu Source # | |
| Defined in Discord.Internal.Types.Components Methods readsPrec :: Int -> ReadS ComponentSelectMenu # readList :: ReadS [ComponentSelectMenu] # | |
| Show ComponentSelectMenu Source # | |
| Defined in Discord.Internal.Types.Components Methods showsPrec :: Int -> ComponentSelectMenu -> ShowS # show :: ComponentSelectMenu -> String # showList :: [ComponentSelectMenu] -> ShowS # | |
data ComponentActionRow Source #
Constructors
| ComponentActionRowButton [ComponentButton] | |
| ComponentActionRowSelectMenu ComponentSelectMenu | 
Instances
| Eq ComponentActionRow Source # | |
| Defined in Discord.Internal.Types.Components Methods (==) :: ComponentActionRow -> ComponentActionRow -> Bool # (/=) :: ComponentActionRow -> ComponentActionRow -> Bool # | |
| Show ComponentActionRow Source # | |
| Defined in Discord.Internal.Types.Components Methods showsPrec :: Int -> ComponentActionRow -> ShowS # show :: ComponentActionRow -> String # showList :: [ComponentActionRow] -> ShowS # | |
| Internals ComponentActionRow Component Source # | |
| Defined in Discord.Internal.Types.Components Methods toInternal :: ComponentActionRow -> Component Source # fromInternal :: Component -> Maybe ComponentActionRow Source # | |
Constructors
| Component | |
| Fields 
 | |
Instances
| Eq Component Source # | |
| Ord Component Source # | |
| Defined in Discord.Internal.Types.Components | |
| Read Component Source # | |
| Show Component Source # | |
| ToJSON Component Source # | |
| Defined in Discord.Internal.Types.Components | |
| FromJSON Component Source # | |
| Internals ComponentActionRow Component Source # | |
| Defined in Discord.Internal.Types.Components Methods toInternal :: ComponentActionRow -> Component Source # fromInternal :: Component -> Maybe ComponentActionRow Source # | |
data ComponentType Source #
The different types of components
Constructors
| ComponentTypeActionRow | A container for other components | 
| ComponentTypeButton | A button | 
| ComponentTypeSelectMenu | A select menu for picking from choices | 
Instances
data InternalButtonStyle Source #
Constructors
| InternalButtonStylePrimary | Blurple button | 
| InternalButtonStyleSecondary | Grey button | 
| InternalButtonStyleSuccess | Green button | 
| InternalButtonStyleDanger | Red button | 
| InternalButtonStyleLink | Grey button, navigates to URL | 
Instances
Represents an emoticon (emoji)
Constructors
| Emoji | |
data SelectOption Source #
Constructors
| SelectOption | |
| Fields 
 | |