calamity-0.1.14.1: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Channel.Embed

Description

Message embeds

Documentation

data Embed Source #

Instances

Instances details
Eq Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

(==) :: Embed -> Embed -> Bool #

(/=) :: Embed -> Embed -> Bool #

Show Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

showsPrec :: Int -> Embed -> ShowS #

show :: Embed -> String #

showList :: [Embed] -> ShowS #

Generic Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep Embed :: Type -> Type #

Methods

from :: Embed -> Rep Embed x #

to :: Rep Embed x -> Embed #

Semigroup Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

(<>) :: Embed -> Embed -> Embed #

sconcat :: NonEmpty Embed -> Embed #

stimes :: Integral b => b -> Embed -> Embed #

Monoid Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

mempty :: Embed #

mappend :: Embed -> Embed -> Embed #

mconcat :: [Embed] -> Embed #

TextShow Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser Embed

parseJSONList :: Value -> Parser [Embed]

ToJSON Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: Embed -> Value

toEncoding :: Embed -> Encoding

toJSONList :: [Embed] -> Value

toEncodingList :: [Embed] -> Encoding

Default Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

def :: Embed

ToMessage Embed Source #

Message embed, (<>) merges embeds using (<>)

Instance details

Defined in Calamity.Types.Tellable

type Rep Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep Embed = D1 ('MetaData "Embed" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "Embed" 'PrefixI 'True) (((S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "color") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Colour Double)))))) :*: ((S1 ('MetaSel ('Just "footer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmbedFooter)) :*: (S1 ('MetaSel ('Just "image") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmbedImage)) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmbedThumbnail)))) :*: ((S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmbedVideo)) :*: S1 ('MetaSel ('Just "provider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmbedProvider))) :*: (S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmbedAuthor)) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [EmbedField]))))))

data EmbedFooter Source #

Constructors

EmbedFooter 

Instances

Instances details
Eq EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedFooter :: Type -> Type #

Semigroup EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedFooter

parseJSONList :: Value -> Parser [EmbedFooter]

ToJSON EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedFooter -> Value

toEncoding :: EmbedFooter -> Encoding

toJSONList :: [EmbedFooter] -> Value

toEncodingList :: [EmbedFooter] -> Encoding

type Rep EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedFooter = D1 ('MetaData "EmbedFooter" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedFooter" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "iconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "proxyIconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

data EmbedImage Source #

Constructors

EmbedImage 

Fields

Instances

Instances details
Eq EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedImage :: Type -> Type #

TextShow EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedImage

parseJSONList :: Value -> Parser [EmbedImage]

ToJSON EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedImage -> Value

toEncoding :: EmbedImage -> Encoding

toJSONList :: [EmbedImage] -> Value

toEncodingList :: [EmbedImage] -> Encoding

type Rep EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedImage = D1 ('MetaData "EmbedImage" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedImage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "proxyUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))))

data EmbedThumbnail Source #

Constructors

EmbedThumbnail 

Fields

Instances

Instances details
Eq EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedThumbnail :: Type -> Type #

TextShow EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedThumbnail

parseJSONList :: Value -> Parser [EmbedThumbnail]

ToJSON EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedThumbnail -> Value

toEncoding :: EmbedThumbnail -> Encoding

toJSONList :: [EmbedThumbnail] -> Value

toEncodingList :: [EmbedThumbnail] -> Encoding

type Rep EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedThumbnail = D1 ('MetaData "EmbedThumbnail" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedThumbnail" 'PrefixI 'True) ((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "proxyUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))))

data EmbedVideo Source #

Constructors

EmbedVideo 

Fields

Instances

Instances details
Eq EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedVideo :: Type -> Type #

TextShow EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedVideo

parseJSONList :: Value -> Parser [EmbedVideo]

ToJSON EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedVideo -> Value

toEncoding :: EmbedVideo -> Encoding

toJSONList :: [EmbedVideo] -> Value

toEncodingList :: [EmbedVideo] -> Encoding

type Rep EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedVideo = D1 ('MetaData "EmbedVideo" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedVideo" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))))

data EmbedProvider Source #

Constructors

EmbedProvider 

Fields

Instances

Instances details
Eq EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedProvider :: Type -> Type #

TextShow EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedProvider

parseJSONList :: Value -> Parser [EmbedProvider]

ToJSON EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedProvider -> Value

toEncoding :: EmbedProvider -> Encoding

toJSONList :: [EmbedProvider] -> Value

toEncodingList :: [EmbedProvider] -> Encoding

type Rep EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedProvider = D1 ('MetaData "EmbedProvider" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedProvider" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))

data EmbedAuthor Source #

Instances

Instances details
Eq EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedAuthor :: Type -> Type #

TextShow EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedAuthor

parseJSONList :: Value -> Parser [EmbedAuthor]

ToJSON EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedAuthor -> Value

toEncoding :: EmbedAuthor -> Encoding

toJSONList :: [EmbedAuthor] -> Value

toEncodingList :: [EmbedAuthor] -> Encoding

type Rep EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedAuthor = D1 ('MetaData "EmbedAuthor" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedAuthor" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "iconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "proxyIconURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

data EmbedField Source #

Constructors

EmbedField 

Fields

Instances

Instances details
Eq EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Show EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Generic EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Associated Types

type Rep EmbedField :: Type -> Type #

TextShow EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

parseJSON :: Value -> Parser EmbedField

parseJSONList :: Value -> Parser [EmbedField]

ToJSON EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

toJSON :: EmbedField -> Value

toEncoding :: EmbedField -> Encoding

toJSONList :: [EmbedField] -> Value

toEncodingList :: [EmbedField] -> Encoding

type Rep EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedField = D1 ('MetaData "EmbedField" "Calamity.Types.Model.Channel.Embed" "calamity-0.1.14.1-inplace" 'False) (C1 ('MetaCons "EmbedField" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "inline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))