discord.lib-2.0
v2.0.1
Published
A better and well organized discord bot creating library
Downloads
13
Maintainers
Readme
Discord.lib 2.0
This is a newer version of discord.lib that is easier to manage. All new functions, now have constructors, allowing you to run multiple instance in on file.
Examples
login
Method 1
const Discord = require("discord.lib-2.0")
const client = new Discord.Client({ token: "some token" })
Method 2
const Discord = require("discord.lib-2.0")
const client = new Discord.Client()
client.login("some token")
Send message
const Discord = require("discord.lib-2.0")
const client = new Discord.Client({ token: "some token" })
client.channelSend("command trigger", "response")
Send Message to a specific channel
const Discord = require("discord.lib-2.0")
const client = new Discord.Client({ token: "some token" })
client.globalSend("channel-id", "msg to send")