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

Calamity.Types.Model.Channel.Message

Description

A message from a channel

Documentation

data Message Source #

Instances

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

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

Tellable Message Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

getChannel :: forall (r :: EffectRow). (BotC r, Member (Error RestError) r) => Message -> Sem r (Snowflake Channel) Source #

HasID Channel Message 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 UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.UpdatedMessage

HasID Message ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

HasID Message LightContext Source # 
Instance details

Defined in Calamity.Commands.Context

HasID Message FullContext Source # 
Instance details

Defined in Calamity.Commands.Context

HasID User Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Generic (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Associated Types

type Rep (Partial Message) :: Type -> Type #

FromJSON (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow (Partial 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.3.0.0-inplace" 'False) (C1 ('MetaCons "Message" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Message)) :*: (S1 ('MetaSel ('Just "channelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Channel)) :*: S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Guild))))) :*: (S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake User)) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime)))) :*: ((S1 ('MetaSel ('Just "editedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UTCTime)) :*: (S1 ('MetaSel ('Just "tts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "mentionEveryone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "mentions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector (Snowflake User))) :*: S1 ('MetaSel ('Just "mentionRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector (Snowflake Role)))) :*: (S1 ('MetaSel ('Just "mentionChannels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Vector (Snowflake Channel)))) :*: S1 ('MetaSel ('Just "attachments") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Attachment]))))) :*: (((S1 ('MetaSel ('Just "embeds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Embed]) :*: (S1 ('MetaSel ('Just "reactions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Reaction]) :*: S1 ('MetaSel ('Just "nonce") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)))) :*: (S1 ('MetaSel ('Just "pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "webhookID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Webhook))) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MessageType)))) :*: ((S1 ('MetaSel ('Just "activity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Object)) :*: (S1 ('MetaSel ('Just "application") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Object)) :*: S1 ('MetaSel ('Just "messageReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageReference)))) :*: ((S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "referencedMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Message))) :*: (S1 ('MetaSel ('Just "interaction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Object)) :*: S1 ('MetaSel ('Just "components") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Component])))))))
data Partial Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Updated Message Source # 
Instance details

Defined in Calamity.Internal.Updateable

type Rep (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep (Partial Message) = D1 ('MetaData "Partial" "Calamity.Types.Model.Channel.Message" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "PartialMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "channelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Channel)) :*: S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Guild)))))

data MessageType Source #

Instances

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

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.3.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)))) :+: (((C1 ('MetaCons "UserPremiumGuildSubscription" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPremiumGuildSubscriptionTier1" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserPremiumGuildSubscriptionTier2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPremiumGuildSubscriptionTier3" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ChannelFollowAdd" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "GuildDiscoveryDisqualified" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GuildDiscoveryRequalified" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Reply" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ApplicationCommmand" 'PrefixI 'False) (U1 :: Type -> Type))))))

data MessageReference Source #

Instances

Instances details
Eq MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Generic MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Associated Types

type Rep MessageReference :: Type -> Type #

ToJSON MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

FromJSON MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

ToMessage MessageReference Source #

Set a MessageReference as the message to reply to

Instance details

Defined in Calamity.Types.Tellable

type Rep MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep MessageReference = D1 ('MetaData "MessageReference" "Calamity.Types.Model.Channel.Message" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "MessageReference" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Message))) :*: S1 ('MetaSel ('Just "channelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Channel)))) :*: (S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Guild))) :*: S1 ('MetaSel ('Just "failIfNotExists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

data family Partial t Source #

Instances

Instances details
HasID Channel (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

HasID Channel (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Guild (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID User (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

HasID Emoji (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Eq (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Eq (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Eq (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Eq (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Show (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Show (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Show (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Generic (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Associated Types

type Rep (Partial Channel) :: Type -> Type #

Generic (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Associated Types

type Rep (Partial Message) :: Type -> Type #

Generic (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Associated Types

type Rep (Partial Guild) :: Type -> Type #

Generic (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Associated Types

type Rep (Partial User) :: Type -> Type #

Methods

from :: Partial User -> Rep (Partial User) x #

to :: Rep (Partial User) x -> Partial User #

Generic (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Associated Types

type Rep (Partial Emoji) :: Type -> Type #

ToJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

ToJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

ToJSON (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

ToJSON (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

FromJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

FromJSON (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

FromJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

FromJSON (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

FromJSON (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

TextShow (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

TextShow (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

TextShow (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

TextShow (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

data Partial Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

data Partial Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data Partial Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

newtype Partial User Source # 
Instance details

Defined in Calamity.Types.Model.User

data Partial Emoji Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

type Rep (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

type Rep (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Rep (Partial Message) = D1 ('MetaData "Partial" "Calamity.Types.Model.Channel.Message" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "PartialMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "channelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Channel)) :*: S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Snowflake Guild)))))
type Rep (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep (Partial Guild) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Guild" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "PartialGuild" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type Rep (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

type Rep (Partial User) = D1 ('MetaData "Partial" "Calamity.Types.Model.User" "calamity-0.3.0.0-inplace" 'True) (C1 ('MetaCons "PartialUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User))))
type Rep (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

type Rep (Partial Emoji) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Emoji" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "PartialEmoji" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake Emoji)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "animated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))