Calamity.Types.Model.Channel
Description
The generic channel type
data Channel Source #
Constructors
Defined in Calamity.Types.Model.Channel
Methods
(==) :: Channel -> Channel -> Bool #
(/=) :: Channel -> Channel -> Bool #
showsPrec :: Int -> Channel -> ShowS #
show :: Channel -> String #
showList :: [Channel] -> ShowS #
Associated Types
type Rep Channel :: Type -> Type #
from :: Channel -> Rep Channel x #
to :: Rep Channel x -> Channel #
parseJSON :: Value -> Parser Channel #
parseJSONList :: Value -> Parser [Channel] #
showbPrec :: Int -> Channel -> Builder #
showb :: Channel -> Builder #
showbList :: [Channel] -> Builder #
showtPrec :: Int -> Channel -> Text #
showt :: Channel -> Text #
showtList :: [Channel] -> Text #
showtlPrec :: Int -> Channel -> Text #
showtl :: Channel -> Text #
showtlList :: [Channel] -> Text #
Defined in Calamity.Internal.Updateable
type Updated Channel Source #
update :: Updated Channel -> Channel -> Channel Source #
(==) :: Partial Channel -> Partial Channel -> Bool #
(/=) :: Partial Channel -> Partial Channel -> Bool #
showsPrec :: Int -> Partial Channel -> ShowS #
show :: Partial Channel -> String #
showList :: [Partial Channel] -> ShowS #
type Rep (Partial Channel) :: Type -> Type #
from :: Partial Channel -> Rep (Partial Channel) x #
to :: Rep (Partial Channel) x -> Partial Channel #
toJSON :: Partial Channel -> Value #
toEncoding :: Partial Channel -> Encoding #
toJSONList :: [Partial Channel] -> Value #
toEncodingList :: [Partial Channel] -> Encoding #
parseJSON :: Value -> Parser (Partial Channel) #
parseJSONList :: Value -> Parser [Partial Channel] #
showbPrec :: Int -> Partial Channel -> Builder #
showb :: Partial Channel -> Builder #
showbList :: [Partial Channel] -> Builder #
showtPrec :: Int -> Partial Channel -> Text #
showt :: Partial Channel -> Text #
showtList :: [Partial Channel] -> Text #
showtlPrec :: Int -> Partial Channel -> Text #
showtl :: Partial Channel -> Text #
showtlList :: [Partial Channel] -> Text #
getID :: Channel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Guild.Category
getID :: Category -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Message
getID :: UpdatedMessage -> Snowflake Channel Source #
getID :: Message -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Reaction
getID :: Reaction -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Guild.Voice
getID :: VoiceChannel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Guild.Text
getID :: TextChannel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Guild
getID :: GuildChannel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Group
getID :: GroupChannel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.DM
getID :: DMChannel -> Snowflake Channel Source #
getID :: Partial Channel -> Snowflake Channel Source #
module Calamity.Types.Model.Channel.DM
module Calamity.Types.Model.Channel.Group
module Calamity.Types.Model.Channel.Guild
module Calamity.Types.Model.Channel.Attachment
module Calamity.Types.Model.Channel.Reaction
module Calamity.Types.Model.Channel.Embed
module Calamity.Types.Model.Channel.ChannelType
data MessageType Source #
succ :: MessageType -> MessageType #
pred :: MessageType -> MessageType #
toEnum :: Int -> MessageType #
fromEnum :: MessageType -> Int #
enumFrom :: MessageType -> [MessageType] #
enumFromThen :: MessageType -> MessageType -> [MessageType] #
enumFromTo :: MessageType -> MessageType -> [MessageType] #
enumFromThenTo :: MessageType -> MessageType -> MessageType -> [MessageType] #
(==) :: MessageType -> MessageType -> Bool #
(/=) :: MessageType -> MessageType -> Bool #
showsPrec :: Int -> MessageType -> ShowS #
show :: MessageType -> String #
showList :: [MessageType] -> ShowS #
type Rep MessageType :: Type -> Type #
from :: MessageType -> Rep MessageType x #
to :: Rep MessageType x -> MessageType #
toJSON :: MessageType -> Value #
toEncoding :: MessageType -> Encoding #
toJSONList :: [MessageType] -> Value #
toEncodingList :: [MessageType] -> Encoding #
parseJSON :: Value -> Parser MessageType #
parseJSONList :: Value -> Parser [MessageType] #
showbPrec :: Int -> MessageType -> Builder #
showb :: MessageType -> Builder #
showbList :: [MessageType] -> Builder #
showtPrec :: Int -> MessageType -> Text #
showt :: MessageType -> Text #
showtList :: [MessageType] -> Text #
showtlPrec :: Int -> MessageType -> Text #
showtl :: MessageType -> Text #
showtlList :: [MessageType] -> Text #
data Message Source #
(==) :: Message -> Message -> Bool #
(/=) :: Message -> Message -> Bool #
showsPrec :: Int -> Message -> ShowS #
show :: Message -> String #
showList :: [Message] -> ShowS #
type Rep Message :: Type -> Type #
from :: Message -> Rep Message x #
to :: Rep Message x -> Message #
toJSON :: Message -> Value #
toEncoding :: Message -> Encoding #
toJSONList :: [Message] -> Value #
toEncodingList :: [Message] -> Encoding #
parseJSON :: Value -> Parser Message #
parseJSONList :: Value -> Parser [Message] #
showbPrec :: Int -> Message -> Builder #
showb :: Message -> Builder #
showbList :: [Message] -> Builder #
showtPrec :: Int -> Message -> Text #
showt :: Message -> Text #
showtList :: [Message] -> Text #
showtlPrec :: Int -> Message -> Text #
showtl :: Message -> Text #
showtlList :: [Message] -> Text #
type Updated Message Source #
update :: Updated Message -> Message -> Message Source #
getID :: UpdatedMessage -> Snowflake Message Source #
getID :: Message -> Snowflake Message Source #
getID :: Reaction -> Snowflake Message Source #
getID :: Message -> Snowflake User Source #