2.0.1 • Published 5 years ago

discord.lib-2.0 v2.0.1

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

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")