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

Calamity.Types.Model.Channel.DM

Description

A DM channel with a single person

Documentation

data DMChannel Source #

Instances

Instances details
Eq DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

Show DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

Generic DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

Associated Types

type Rep DMChannel :: Type -> Type #

TextShow DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

FromJSON DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

Methods

parseJSON :: Value -> Parser DMChannel

parseJSONList :: Value -> Parser [DMChannel]

Updateable DMChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated DMChannel Source #

Tellable DMChannel Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member (Error RestError) r) => DMChannel -> Sem r (Snowflake Channel) Source #

Mentionable DMChannel Source # 
Instance details

Defined in Calamity.Utils.Message

HasID Channel DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

HasID DMChannel DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

Tellable (Snowflake DMChannel) Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member (Error RestError) r) => Snowflake DMChannel -> Sem r (Snowflake Channel) Source #

Mentionable (Snowflake DMChannel) Source # 
Instance details

Defined in Calamity.Utils.Message

type Rep DMChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.DM

type Rep DMChannel = D1 ('MetaData "DMChannel" "Calamity.Types.Model.Channel.DM" "calamity-0.1.14.6-inplace" 'False) (C1 ('MetaCons "DMChannel" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake DMChannel)) :*: S1 ('MetaSel ('Just "lastMessageID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake Message)))) :*: (S1 ('MetaSel ('Just "lastPinTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "recipients") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector (Snowflake User))))))
type Updated DMChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable