Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Instances
Eq ComponentButton Source # | |
Defined in Discord.Internal.Types.Components (==) :: ComponentButton -> ComponentButton -> Bool # (/=) :: ComponentButton -> ComponentButton -> Bool # | |
Show ComponentButton Source # | |
Defined in Discord.Internal.Types.Components showsPrec :: Int -> ComponentButton -> ShowS # show :: ComponentButton -> String # showList :: [ComponentButton] -> ShowS # |
data ButtonStyle Source #
Instances
Eq ButtonStyle Source # | |
Defined in Discord.Internal.Types.Components (==) :: ButtonStyle -> ButtonStyle -> Bool # (/=) :: ButtonStyle -> ButtonStyle -> Bool # | |
Read ButtonStyle Source # | |
Defined in Discord.Internal.Types.Components readsPrec :: Int -> ReadS ButtonStyle # readList :: ReadS [ButtonStyle] # readPrec :: ReadPrec ButtonStyle # readListPrec :: ReadPrec [ButtonStyle] # | |
Show ButtonStyle Source # | |
Defined in Discord.Internal.Types.Components showsPrec :: Int -> ButtonStyle -> ShowS # show :: ButtonStyle -> String # showList :: [ButtonStyle] -> ShowS # | |
Internals ButtonStyle InternalButtonStyle Source # | |
data ComponentSelectMenu Source #
Component type for a select menus.
Don't directly send select menus - they need to be within an action row.
Instances
Eq ComponentSelectMenu Source # | |
Defined in Discord.Internal.Types.Components (==) :: ComponentSelectMenu -> ComponentSelectMenu -> Bool # (/=) :: ComponentSelectMenu -> ComponentSelectMenu -> Bool # | |
Read ComponentSelectMenu Source # | |
Show ComponentSelectMenu Source # | |
Defined in Discord.Internal.Types.Components showsPrec :: Int -> ComponentSelectMenu -> ShowS # show :: ComponentSelectMenu -> String # showList :: [ComponentSelectMenu] -> ShowS # |
data ComponentActionRow Source #
Instances
Eq ComponentActionRow Source # | |
Defined in Discord.Internal.Types.Components (==) :: ComponentActionRow -> ComponentActionRow -> Bool # (/=) :: ComponentActionRow -> ComponentActionRow -> Bool # | |
Show ComponentActionRow Source # | |
Defined in Discord.Internal.Types.Components showsPrec :: Int -> ComponentActionRow -> ShowS # show :: ComponentActionRow -> String # showList :: [ComponentActionRow] -> ShowS # | |
Internals ComponentActionRow Component Source # | |
Defined in Discord.Internal.Types.Components |
Component | |
|
Instances
data ComponentType Source #
The different types of components
ComponentTypeActionRow | A container for other components |
ComponentTypeButton | A button |
ComponentTypeSelectMenu | A select menu for picking from choices |
Instances
data InternalButtonStyle Source #
InternalButtonStylePrimary | Blurple button |
InternalButtonStyleSecondary | Grey button |
InternalButtonStyleSuccess | Green button |
InternalButtonStyleDanger | Red button |
InternalButtonStyleLink | Grey button, navigates to URL |
Instances
Represents an emoticon (emoji)
data SelectOption Source #
SelectOption | |
|