Calamity.Types.Model.Channel.DM
Description
A DM channel with a single person
data DMChannel Source #
Constructors
Fields
Defined in Calamity.Types.Model.Channel.DM
Methods
parseJSON :: Value -> Parser DMChannel #
parseJSONList :: Value -> Parser [DMChannel] #
showsPrec :: Int -> DMChannel -> ShowS #
show :: DMChannel -> String #
showList :: [DMChannel] -> ShowS #
Defined in Calamity.Internal.Updateable
Associated Types
type Updated DMChannel Source #
update :: Updated DMChannel -> DMChannel -> DMChannel Source #
Defined in Calamity.Types.Tellable
getChannel :: forall (r :: EffectRow). (BotC r, Member (Error RestError) r) => DMChannel -> Sem r (Snowflake Channel) Source #
Defined in Calamity.Utils.Message
mention :: DMChannel -> Text Source #
(==) :: DMChannel -> DMChannel -> Bool #
(/=) :: DMChannel -> DMChannel -> Bool #
showbPrec :: Int -> DMChannel -> Builder #
showb :: DMChannel -> Builder #
showbList :: [DMChannel] -> Builder #
showtPrec :: Int -> DMChannel -> Text #
showt :: DMChannel -> Text #
showtList :: [DMChannel] -> Text #
showtlPrec :: Int -> DMChannel -> Text #
showtl :: DMChannel -> Text #
showtlList :: [DMChannel] -> Text #
getID :: DMChannel -> Snowflake Channel Source #
getID :: DMChannel -> Snowflake DMChannel Source #
labelOptic :: Optic k NoIx DMChannel DMChannel a b #
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: EffectRow). BotC r => Snowflake DMChannel -> Sem r (Maybe DMChannel) Source #
getChannel :: forall (r :: EffectRow). (BotC r, Member (Error RestError) r) => Snowflake DMChannel -> Sem r (Snowflake Channel) Source #
mention :: Snowflake DMChannel -> Text Source #