calamity-0.3.0.0: A library for writing discord bots in haskell
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Channel.Embed

Description

Message embeds

Synopsis

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 #

ToJSON Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Default Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

def :: Embed #

TextShow Embed Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

ToMessage Embed Source #

Message embed, (<>) appends a new embed

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.3.0.0-inplace" 'False) (C1 ('MetaCons "Embed" 'PrefixI 'True) (((S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "color") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Colour Double)))))) :*: ((S1 ('MetaSel ('Just "footer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EmbedFooter)) :*: (S1 ('MetaSel ('Just "image") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EmbedImage)) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EmbedThumbnail)))) :*: ((S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EmbedVideo)) :*: S1 ('MetaSel ('Just "provider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EmbedProvider))) :*: (S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EmbedAuthor)) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [EmbedField]))))))

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

embedAuthor' Source #

Arguments

:: 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

embedField Source #

Arguments

:: Text

Name

-> Text

Value

-> EmbedField 

Create a non-inline embed field

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

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.3.0.0-inplace" 'False) (C1 ('MetaCons "EmbedFooter" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "iconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "proxyIconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

data EmbedImage Source #

Constructors

EmbedImage 

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 #

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

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

data EmbedThumbnail Source #

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 #

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

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

data EmbedVideo Source #

Constructors

EmbedVideo 

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 #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "EmbedVideo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "proxyUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe 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 #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "EmbedProvider" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (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 #

ToJSON EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

FromJSON EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Default EmbedAuthor Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Embed

Methods

def :: EmbedAuthor #

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

type Rep EmbedAuthor = D1 ('MetaData "EmbedAuthor" "Calamity.Types.Model.Channel.Embed" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "EmbedAuthor" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "iconUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "proxyIconURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (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 #

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.3.0.0-inplace" 'False) (C1 ('MetaCons "EmbedField" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "inline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))