calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Channel.Embed

Description

Message embeds

Documentation

data Embed Source #

Instances
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 #

ToJSON Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

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.0.0-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 Word64))))) :*: ((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
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 #

ToJSON EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedFooter Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

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.0.0-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
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 #

ToJSON EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedImage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

data EmbedThumbnail Source #

Constructors

EmbedThumbnail 

Fields

Instances
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 #

ToJSON EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedThumbnail Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

data EmbedVideo Source #

Constructors

EmbedVideo 

Fields

Instances
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 #

ToJSON EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedVideo Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

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.0.0-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
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 #

ToJSON EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedProvider Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

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.0.0-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
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 #

ToJSON EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

type Rep EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

data EmbedField Source #

Constructors

EmbedField 

Fields

Instances
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 #

ToJSON EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

TextShow EmbedField Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

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.0.0-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))))