0.0.0 • Published 4 years ago
docscord.js v0.0.0
Docscord.JS
A docs package for discord.js written in JavaScript!
Note: This package returns discord-embed object!
Installing
npm i --save docscord.js
Available Branches
- Stable
- Commando
- Master
- RPC
Starting
const { Client } = require('docscord.js');
const docsClient = new Client();
Example
const Discord = require('discord.js');
const client = new Discord.Client();
const { Client } = require('docscord.js');
const docsClient = new Client();
client.on('ready', () => {
console.log(`${client.user.tag} is online!`);
});
client.on('message', (msg) => {
if (msg.content.toLowerCase() === "stable-client") {
docsClient.searchStable("client").then(body => {
msg.channel.send({ embed: body })
});
}
});
client.login('TOKEN');
Need Help?
0.0.0
4 years ago