🎨 DisciJs
Easy to use library for creating discord applications via interaction webhooks.
🚀 Install
Use any of the following commands
npm install disci
# yarn
yarn add disci
# pnpm
pnpm add disci
Overview
DisciJs contains the minimum code to create a discord application with the new (relatively) interaction webhook system. DisciJs does not itself include validation of received interactions, we expect the user to handle that before passing us the data.
You can use discord-interactions-js for validation of received requests
This package expects you to have prior knowledge of javascript / typescript and prior knowledge with interacting with the discord api via either,
- The raw api
- or other discord libraries (like discord.js)
The library will only error out on certain occasions and for other occasions user is expected to handle the error via api errors received
Guides and more can be found here
Nodejs version
This only apply if you plan to use disci in a server environment. Disci uses the fetch api for its built in rest module which is Already available in serverless environments (such as cloudflare workers). However Native fetch api for node.js is implemented in node.js v18+ (unstable & experimental) as such this Module requires node.js version 18+ to be used
Links
License
This repository and the code inside it is licensed under the Apache-2.0 License. Read LICENSE for more information.