calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Channel.Message

Description

A message from a channel

Documentation

data Message Source #

Instances
Eq Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Methods

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

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

Show Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Generic Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

ToJSON Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

FromJSON Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Updateable Message Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated Message :: Type Source #

HasID Channel Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Message UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Message Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Message Reaction Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Reaction

HasID User Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep Message = D1 (MetaData "Message" "Calamity.Types.Model.Channel.Message" "calamity-0.1.0.0-inplace" False) (C1 (MetaCons "Message" PrefixI True) ((((S1 (MetaSel (Just "id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Message)) :*: S1 (MetaSel (Just "channelID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Channel))) :*: (S1 (MetaSel (Just "guildID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Snowflake Guild))) :*: S1 (MetaSel (Just "author") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake User)))) :*: ((S1 (MetaSel (Just "content") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "timestamp") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) :*: (S1 (MetaSel (Just "editedTimestamp") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime)) :*: (S1 (MetaSel (Just "tts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "mentionEveryone") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))) :*: (((S1 (MetaSel (Just "mentions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector (Snowflake User))) :*: S1 (MetaSel (Just "mentionRoles") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector (Snowflake Role)))) :*: (S1 (MetaSel (Just "attachments") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Attachment]) :*: S1 (MetaSel (Just "embeds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Embed]))) :*: ((S1 (MetaSel (Just "reactions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Reaction]) :*: S1 (MetaSel (Just "nonce") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Snowflake Message)))) :*: (S1 (MetaSel (Just "pinned") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: (S1 (MetaSel (Just "webhookID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Snowflake ()))) :*: S1 (MetaSel (Just "type_") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MessageType)))))))
type Updated Message Source # 
Instance details

Defined in Calamity.Internal.Updateable

data UpdatedMessage Source #

Instances
Eq UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Generic UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Associated Types

type Rep UpdatedMessage :: Type -> Type #

FromJSON UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Message UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep UpdatedMessage = D1 (MetaData "UpdatedMessage" "Calamity.Types.Model.Channel.Message" "calamity-0.1.0.0-inplace" False) (C1 (MetaCons "UpdatedMessage" PrefixI True) (((S1 (MetaSel (Just "id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Message)) :*: (S1 (MetaSel (Just "channelID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Channel)) :*: S1 (MetaSel (Just "content") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "editedTimestamp") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime)) :*: (S1 (MetaSel (Just "tts") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "mentionEveryone") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))) :*: ((S1 (MetaSel (Just "mentions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Vector (Snowflake User)))) :*: (S1 (MetaSel (Just "mentionRoles") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Vector (Snowflake Role)))) :*: S1 (MetaSel (Just "attachments") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Attachment])))) :*: (S1 (MetaSel (Just "embeds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Embed])) :*: (S1 (MetaSel (Just "reactions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Reaction])) :*: S1 (MetaSel (Just "pinned") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))))))

data MessageType Source #

Instances
Enum MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Eq MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Generic MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Associated Types

type Rep MessageType :: Type -> Type #

ToJSON MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

FromJSON MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep MessageType = D1 (MetaData "MessageType" "Calamity.Types.Model.Channel.Message" "calamity-0.1.0.0-inplace" False) (((C1 (MetaCons "Default" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RecipientAdd" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "RecipientRemove" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Call" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "ChannelNameChange" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ChannelIconChange" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "ChannelPinnedMessage" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GuildMemberJoin" PrefixI False) (U1 :: Type -> Type))))