Skip to content

willcurry/clojure-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-discord

Clojars Project

Setup

Add the clojar to your project dependencies:

:dependencies [[clojure-discord "0.1.0-SNAPSHOT"]]

Require necessary namespaces:

:require [clojure-discord.gateway :as gateway]

Discord token:

Create a file called called config.edn within the root of your project which contains your bot token like so:

{:token "your_bot_token"}

Connect to the gateway:

(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

Start coding:

View examples here.

Functions and namespaces:

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

About

A library for discords API written in Clojure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published