calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Types.Model.Channel.Message

Description

A message from a channel

Documentation

data Message Source #

Instances

Instances details
FromJSON Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

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

TextShow Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Message FullContext Source # 
Instance details

Defined in Calamity.Commands.Context

HasID Message LightContext Source # 
Instance details

Defined in Calamity.Commands.Context

HasID Message ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

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 User Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe Object, b ~ Maybe Object) => LabelOptic "activity" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe Object, b ~ Maybe Object) => LabelOptic "application" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ [Attachment], b ~ [Attachment]) => LabelOptic "attachments" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ MessageAuthor, b ~ MessageAuthor) => LabelOptic "author" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "channelID" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ [Component], b ~ [Component]) => LabelOptic "components" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "content" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe UTCTime, b ~ Maybe UTCTime) => LabelOptic "editedTimestamp" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ [Embed], b ~ [Embed]) => LabelOptic "embeds" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Word64, b ~ Word64) => LabelOptic "flags" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Message, b ~ Snowflake Message) => LabelOptic "id" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe Object, b ~ Maybe Object) => LabelOptic "interaction" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ [ChannelMention], b ~ [ChannelMention]) => LabelOptic "mentionChannels" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "mentionEveryone" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Vector (Snowflake Role), b ~ Vector (Snowflake Role)) => LabelOptic "mentionRoles" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ [User], b ~ [User]) => LabelOptic "mentions" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe MessageReference, b ~ Maybe MessageReference) => LabelOptic "messageReference" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe Value, b ~ Maybe Value) => LabelOptic "nonce" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "pinned" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ [Reaction], b ~ [Reaction]) => LabelOptic "reactions" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe Message, b ~ Maybe Message) => LabelOptic "referencedMessage" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ UTCTime, b ~ UTCTime) => LabelOptic "timestamp" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "tts" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ MessageType, b ~ MessageType) => LabelOptic "type_" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Webhook), b ~ Maybe (Snowflake Webhook)) => LabelOptic "webhookID" k Message Message a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "channelID" k (Partial Message) (Partial Message) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k (Partial Message) (Partial Message) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

FromJSON (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

TextShow (Partial Message) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

type Updated Message Source # 
Instance details

Defined in Calamity.Internal.Updateable

data Partial Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data MessageAuthorWebhook Source #

Instances

Instances details
Show MessageAuthorWebhook Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow MessageAuthorWebhook Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Webhook MessageAuthorWebhook Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "avatar" k MessageAuthorWebhook MessageAuthorWebhook a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Webhook, b ~ Snowflake Webhook) => LabelOptic "id" k MessageAuthorWebhook MessageAuthorWebhook a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "username" k MessageAuthorWebhook MessageAuthorWebhook a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data ChannelMention Source #

Instances

Instances details
FromJSON ChannelMention Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show ChannelMention Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow ChannelMention Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel ChannelMention Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Guild, b ~ Snowflake Guild) => LabelOptic "guildID" k ChannelMention ChannelMention a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "id" k ChannelMention ChannelMention a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k ChannelMention ChannelMention a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ ChannelType, b ~ ChannelType) => LabelOptic "type_" k ChannelMention ChannelMention a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data MessageType Source #

Instances

Instances details
FromJSON MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Enum MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Eq MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

TextShow MessageType Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data MessageReference Source #

Instances

Instances details
FromJSON MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

ToJSON MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Show MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

CalamityToJSON' MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

Methods

toPairs :: KeyValue kv => MessageReference -> [Maybe kv] Source #

ToMessage MessageReference Source #

Set a MessageReference as the message to reply to

Instance details

Defined in Calamity.Types.Tellable

Eq MessageReference Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Channel), b ~ Maybe (Snowflake Channel)) => LabelOptic "channelID" k MessageReference MessageReference a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "failIfNotExists" k MessageReference MessageReference a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k MessageReference MessageReference a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Message), b ~ Maybe (Snowflake Message)) => LabelOptic "messageID" k MessageReference MessageReference a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

data family Partial t Source #

Instances

Instances details
(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "animated" k (Partial Emoji) (Partial Emoji) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "channelID" k (Partial Message) (Partial Message) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k (Partial Message) (Partial Message) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "id" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ Snowflake Emoji, b ~ Snowflake Emoji) => LabelOptic "id" k (Partial Emoji) (Partial Emoji) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

(k ~ A_Lens, a ~ Snowflake Guild, b ~ Snowflake Guild) => LabelOptic "id" k (Partial Guild) (Partial Guild) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

(k ~ An_Iso, a ~ Snowflake User, b ~ Snowflake User) => LabelOptic "id" k (Partial User) (Partial User) a b Source # 
Instance details

Defined in Calamity.Types.Model.User

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Emoji) (Partial Emoji) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k (Partial Guild) (Partial Guild) a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

(k ~ A_Lens, a ~ Maybe (Snowflake Category), b ~ Maybe (Snowflake Category)) => LabelOptic "parentID" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ Maybe Permissions, b ~ Maybe Permissions) => LabelOptic "permissions" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

(k ~ A_Lens, a ~ ChannelType, b ~ ChannelType) => LabelOptic "type_" k (Partial Channel) (Partial Channel) a b Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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 Emoji (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

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

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 Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

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

ToJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

ToJSON (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

ToJSON (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

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 Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

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

CalamityToJSON' (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

toPairs :: KeyValue kv => Partial Channel -> [Maybe kv] Source #

CalamityToJSON' (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Methods

toPairs :: KeyValue kv => Partial Emoji -> [Maybe kv] Source #

CalamityToJSON' (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

toPairs :: KeyValue kv => Partial Guild -> [Maybe kv] Source #

Eq (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Eq (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

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

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 Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

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

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 Emoji Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

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