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
Show Component Source # | |
Generic Component Source # | |
ToJSON Component Source # | |
Defined in Calamity.Types.Model.Channel.Component | |
FromJSON Component Source # | |
TextShow Component Source # | |
Defined in Calamity.Types.Model.Channel.Component | |
type Rep Component Source # | |
Defined in Calamity.Types.Model.Channel.Component type Rep Component = D1 ('MetaData "Component" "Calamity.Types.Model.Channel.Component" "calamity-0.1.31.0-24O35Fv9VrsGPbC3A1WbW" 'False) (C1 ('MetaCons "Button'" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Button)) :+: C1 ('MetaCons "ActionRow'" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Component]))) |
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 #