calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Channel

Description

The generic channel type

Documentation

data Channel Source #

Instances
Eq Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

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

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

Show Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Generic Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Associated Types

type Rep Channel :: Type -> Type #

Methods

from :: Channel -> Rep Channel x #

to :: Rep Channel x -> Channel #

FromJSON Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

TextShow Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Updateable Channel Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated Channel :: Type Source #

Eq (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Show (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Generic (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Associated Types

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

ToJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

FromJSON (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

TextShow (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

HasID Channel Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

HasID Channel Category Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild.Category

HasID Channel UpdatedMessage Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID Channel Reaction Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Reaction

HasID Channel VoiceChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild.Voice

HasID Channel TextChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild.Text

HasID Channel GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID Channel GroupChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Group

HasID Channel DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

HasID Channel (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

type Rep Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

data Partial Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

type Updated Channel Source # 
Instance details

Defined in Calamity.Internal.Updateable

type Rep (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

data family Partial t Source #

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

HasID Channel (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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

data Partial Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

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 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.1.0.0-inplace" False) (C1 (MetaCons "PartialGuild" PrefixI True) (S1 (MetaSel (Just "id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Guild)) :*: S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (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.1.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.1.0.0-inplace" False) (C1 (MetaCons "PartialEmoji" PrefixI True) (S1 (MetaSel (Just "id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Emoji)) :*: S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

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

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