Safe Haskell | None |
---|---|
Language | Haskell2010 |
Message embeds
Synopsis
- data Embed = Embed {
- title :: Maybe Text
- type_ :: Maybe Text
- description :: Maybe Text
- url :: Maybe Text
- timestamp :: Maybe UTCTime
- color :: Maybe (Colour Double)
- footer :: Maybe EmbedFooter
- image :: Maybe EmbedImage
- thumbnail :: Maybe EmbedThumbnail
- video :: Maybe EmbedVideo
- provider :: Maybe EmbedProvider
- author :: Maybe EmbedAuthor
- fields :: [EmbedField]
- embedFooter :: Text -> EmbedFooter
- embedImage :: Text -> EmbedImage
- embedThumbnail :: Text -> EmbedThumbnail
- embedAuthor :: Text -> EmbedAuthor
- embedAuthor' :: Text -> Text -> Text -> EmbedAuthor
- embedField :: Text -> Text -> EmbedField
- data EmbedFooter = EmbedFooter {}
- data EmbedImage = EmbedImage {}
- data EmbedThumbnail = EmbedThumbnail {}
- data EmbedVideo = EmbedVideo {}
- data EmbedProvider = EmbedProvider {}
- data EmbedAuthor = EmbedAuthor {}
- data EmbedField = EmbedField {}
Documentation
Embed | |
|
Instances
embedFooter :: Text -> EmbedFooter Source #
Create an embed footer with a provided content
The remaining fields are set to Nothing
embedImage :: Text -> EmbedImage Source #
Create an embed image with a provided url
The remaining fields are set to Nothing
embedThumbnail :: Text -> EmbedThumbnail Source #
Create an embed thumbnail with a provided url
The remaining fields are set to Nothing
embedAuthor :: Text -> EmbedAuthor Source #
Create an embed author with the given name
The remaining fields are set to Nothing
:: Text | Name |
-> Text | Url |
-> Text | Icon url |
-> EmbedAuthor |
Create an embed author with the given name, url, and icon url
The remaining fields are set to Nothing
data EmbedImage Source #
Instances
data EmbedThumbnail Source #
Instances
data EmbedVideo Source #
Instances
data EmbedProvider Source #
Instances
data EmbedAuthor Source #
Instances
data EmbedField Source #