Liking cljdoc? Tell your friends :D

discord.client


create-discord-clientclj

(create-discord-client message-handler)
(create-discord-client auth
                       message-handler
                       &
                       {:keys [send-channel receive-channel] :as options})

Creates a simple client to communicate with the Discord APIs and Gateway. The client handles all server messages via the Gateway. It will handle the server events and manage the asynchronous communication channels, as well as the sending of identification messages.

Required argument: message-handler : Function taking a DiscordClient and a Message that handles the messages getting pushed onto the client's receive channel.

Optional arguments: auth : Authenticated - An object which can generate authentication tokens for Discord's APIs. If this argument is not supplied, authentication information from the configuration files will be used instead.

Additional options available: send-channel : Channel - The asynchronous channel to send messages to. receive-channel : Channel - The asynchronous channel to send messages from.

Creates a simple client to communicate with the Discord APIs and Gateway. The client handles all
server messages via the Gateway. It will handle the server events and manage the asynchronous
communication channels, as well as the sending of identification messages.

Required argument:
   message-handler : Function taking a DiscordClient and a Message that handles the messages
     getting pushed onto the client's receive channel.

Optional arguments:
   auth : Authenticated - An object which can generate authentication tokens for Discord's APIs.
     If this argument is not supplied, authentication information from the configuration files
     will be used instead.

Additional options available:
   send-channel : Channel - The asynchronous channel to send messages to.
   receive-channel : Channel - The asynchronous channel to send messages from.
sourceraw docstring

DiscordClientcljprotocol

send-messageclj

(send-message this channel content embed tts)
source

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

× close