client

A powerful discord bot making library to help you make discord bots. Super easy, 100 percent discord api coverage, and more! Discord.lib also allows you to interact with discord.js.

Whenever you use client in the client function, you need to put dl. in front

Using the client option of discord.lib will allow you to get the client of the bot login from our library. You can also use this to interact with the library discord.js.

Get client

const dl = require("discord.lib")
dl.client.on("message", message => {
    message.channel.send("I love discord.lib")
})
)

You could use everything in the events section of this page

Example of using discord.lib client

const dl = require("discord.lib")
dl.client.on("ready", () => {
 dl.client.user.setActivity(`I am serving ${client.guilds.size} server`)
})

Last updated