dsn.js
Table of Content
Info
DSN.JS is the javascript library wrapper for discordservices.net. It has 100% coverage for it's api. This library will be updated whenever the api for discordservices.net is updated.
Installation
npm i dsn.js
Documentation
Constructor
const DSN = const dsn = dsn-api-token-string
Where dsn-api-token-string is your api token
serverCount
const DSN = const dsn = dsn-api-token-string dsn
Where your-guild-count is your bot's server count, your-shard-count is your bot's shard count, and dsn-api-token-string is your api token, botid is your bot's id
postNews
const DSN = const dsn = dsn-api-token-string dsn
Where botid is your bot's id, title is the title of the new, content is your new's content, and error is a boolean on error.
postCommands
const DSN = const dsn = dsn-api-token-string let commands = "command": command "desc": description "category": category "command": command "desc": description "category": category dsn
commands here is an object of all of the commands, botid is your bot's id, command is your command name, description is the description of the command, and category is the category of the command.
Changelog
5/30/2020 - v1.0.2 - bug fixes
- fixed multiple typo in README and package description