Liking cljdoc? Tell your friends :D

discljord.messaging


send-message!clj

(send-message! conn channel msg & {:keys [user-agent tts] :as opts})

Takes a core.async channel returned by start-connection!, a Discord channel id as a string, and the message you want to send to Discord.

Also allows keyword arguments for the following: :user-agent changes the User-Agent header sent to Discord. :tts is a boolean, defaulting to false, which tells Discord to read your message out loud.

Takes a core.async channel returned by start-connection!, a Discord
channel id as a string, and the message you want to send to Discord.

Also allows keyword arguments for the following:
:user-agent changes the User-Agent header sent to Discord.
:tts is a boolean, defaulting to false, which tells Discord to read
     your message out loud.
sourceraw docstring

start-connection!clj

(start-connection! token)

Takes a token for a bot, and returns a channel which is passed to the various messaging functions.

Takes a token for a bot, and returns a channel which is passed
to the various messaging functions.
sourceraw docstring

stop-connection!clj

(stop-connection! conn)

Takes a channel returned by start-connection! and stops the associated connection.

Takes a channel returned by start-connection! and stops the associated
connection.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close