:dependencies [[clojure-discord "0.1.0-SNAPSHOT"]]
:require [clojure-discord.gateway :as gateway]
Create a file called called config.edn within the root of your project which contains your bot token like so:
{:token "your_bot_token"}
(gateway/connect)
NOTE: You may not need to connect to the gateway, its up to you to check discord docs and see if you require a connection or not
View examples here.
Namespace | Function | Arguments |
---|---|---|
channel | create-message | string channel-id, string message |
channel | pin-message | string channel-id, string message-id |
channel | trigger-typing-indicator | string channel-id |
channel | get-pinned-messages | string channel-id |
channel | get-channel | string channel-id |
channel | get-channel-invites | string channel-id |