Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ComponentActionRow
- data ComponentButton
- = ComponentButton { }
- | ComponentButtonUrl { }
- data ButtonStyle
- mkButton :: Text -> Text -> ComponentButton
- data ComponentSelectMenu = ComponentSelectMenu {}
- mkSelectMenu :: Text -> [SelectOption] -> ComponentSelectMenu
- data SelectOption = SelectOption {}
- mkSelectOption :: Text -> Text -> SelectOption
- data ComponentTextInput = ComponentTextInput {}
- mkComponentTextInput :: Text -> Text -> ComponentTextInput
- data Emoji = Emoji {}
- mkEmoji :: Text -> Emoji
Documentation
data ComponentActionRow Source #
Instances
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.
ComponentButton | |
| |
ComponentButtonUrl | |
|
Instances
data ButtonStyle Source #
Buttton colors.
ButtonStylePrimary | Blurple button |
ButtonStyleSecondary | Grey button |
ButtonStyleSuccess | Green button |
ButtonStyleDanger | Red button |
Instances
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.
ComponentSelectMenu | |
|
Instances
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.
SelectOption | |
|
Instances
mkSelectOption :: Text -> Text -> SelectOption Source #
Make a select option from the given label and value.
data ComponentTextInput Source #
ComponentTextInput | |
|
Instances
mkComponentTextInput :: Text -> Text -> ComponentTextInput Source #