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
(==) :: DMChannel -> DMChannel -> Bool #
(/=) :: DMChannel -> DMChannel -> Bool #
showsPrec :: Int -> DMChannel -> ShowS #
show :: DMChannel -> String #
showList :: [DMChannel] -> ShowS #
Associated Types
type Rep DMChannel :: Type -> Type #
from :: DMChannel -> Rep DMChannel x #
to :: Rep DMChannel x -> DMChannel #
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
parseJSON :: Value -> Parser DMChannel
parseJSONList :: Value -> Parser [DMChannel]
Defined in Calamity.Internal.Updateable
type Updated DMChannel Source #
update :: Updated DMChannel -> DMChannel -> DMChannel Source #
Defined in Calamity.Types.Tellable
getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member (Error RestError) r) => DMChannel -> Sem r (Snowflake Channel) Source #
Defined in Calamity.Utils.Message
mention :: DMChannel -> Text Source #
getID :: DMChannel -> Snowflake Channel Source #
getID :: DMChannel -> Snowflake DMChannel Source #
getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member (Error RestError) r) => Snowflake DMChannel -> Sem r (Snowflake Channel) Source #
mention :: Snowflake DMChannel -> Text Source #