Safe Haskell | None |
---|---|
Language | Haskell2010 |
Message components
Synopsis
- data Component
- = Button' Button
- | ActionRow' [Component]
- data Button = Button {}
- button :: ButtonStyle -> Button
- button' :: ButtonStyle -> Text -> Button
- data ButtonStyle
- data ComponentType
- componentType :: Component -> ComponentType
Documentation
Instances
Instances
button :: ButtonStyle -> Button Source #
Constuct a non-disabled Button
with the given ButtonStyle
, all other
fields are set to Nothing
button' :: ButtonStyle -> Text -> Button Source #
Constuct a non-disabled Button
with the given ButtonStyle
and label,
all other fields are set to Nothing
data ButtonStyle Source #
Instances
data ComponentType Source #