diseasy
An easy-to-use Discord client.
Installation
npm install diseasy
Usage
Just create a discord object, and make requests to Discord's HTTP API.
const discord = token: 'xyz' ; discord ;
You can make any type of request (GET, POST, DELETE, etc.), and each corresponding method returns a superagent request object. Learn about superagent requests here.
You can also access the Gateway WebSocket API.
const message = await discord ; ;
The gateway()
method returns a River, which is a high-level async iterable object. Heartbeats, session resumes, and other necessary ritual are automatically handled for you.
To learn more about the different kinds of events you can receive, read here.