(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close