| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Discord.Internal.Types.Components
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 #
Constructors
| ComponentActionRowButton [ComponentButton] | |
| ComponentActionRowSelectMenu ComponentSelectMenu |
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.
Constructors
| ComponentButton | |
Fields
| |
| ComponentButtonUrl | |
Fields
| |
Instances
data ButtonStyle Source #
Buttton colors.
Constructors
| 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.
Constructors
| ComponentSelectMenu | |
Fields
| |
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.
Constructors
| SelectOption | |
Fields
| |
Instances
mkSelectOption :: Text -> Text -> SelectOption Source #
Make a select option from the given label and value.
data ComponentTextInput Source #
Constructors
| ComponentTextInput | |
Fields
| |
Instances
mkComponentTextInput :: Text -> Text -> ComponentTextInput Source #