Safe Haskell | None |
---|---|
Language | Haskell2010 |
Things that are messageable
Documentation
class ToMessage a where Source #
Things that can be used to send a message
Can be used to compose text, embeds, and files. e.g.
intoMsg
Text
"A message"<>
intoMsg
Embed
(def
&
#description?~
"Embed description")
intoMsg :: a -> Endo CreateMessageOptions Source #
Turn a
into a CreateMessageOptions
builder
Instances
class Tellable a where Source #
Instances
A wrapper type for sending files
TFile | |
|
Instances
Show TFile Source # | |
Generic TFile Source # | |
ToMessage TFile Source # | Message file, |
Defined in Calamity.Types.Tellable | |
type Rep TFile Source # | |
Defined in Calamity.Types.Tellable type Rep TFile = D1 ('MetaData "TFile" "Calamity.Types.Tellable" "calamity-0.1.22.0-4zM6qVK1iz18TG5yi1QxTe" 'False) (C1 ('MetaCons "TFile" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) |
A wrapper type for allowing mentions
Instances
Show (TMention a) Source # | |
Generic (TMention a) Source # | |
ToMessage (TMention Member) Source # | Add a |
Defined in Calamity.Types.Tellable | |
ToMessage (TMention User) Source # | Add a |
Defined in Calamity.Types.Tellable | |
ToMessage (TMention Role) Source # | Add a |
Defined in Calamity.Types.Tellable | |
type Rep (TMention a) Source # | |
Defined in Calamity.Types.Tellable |