| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Calamity.Types.Tellable
Description
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.
intoMsgText"A message"<>intoMsgEmbed(def&#description?~"Embed description")
Instances
class Tellable a where Source #
Methods
getChannel :: (BotC r, Member (Error RestError) r) => a -> Sem r (Snowflake Channel) Source #
Instances
A wrapper type for sending files
Constructors
| TFile | |
Fields
| |
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.26.0-8Rbyh2JfYBvC9UHgZLNZiA" '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 | |