discord.lib
0.5.6
0.5.6
  • discord.lib Official Documentation
  • Change Logs
  • Credits
  • package
  • classes
    • message
    • login
    • joinMessage
    • Complete Examples
    • leaveMessage
    • serverGreeting
    • Attachments
    • sharding
    • Typings
    • exampleBot
    • kick
    • ban
    • webhookClient
  • Interacting with discord.lib's client
    • client
    • bot activities
    • Do servercount in commands
    • Discord
  • Deprecated
    • musicClient
    • userClient
    • Webhook
    • embed
Powered by GitBook
On this page
  • Get client
  • Example of using discord.lib client

Was this helpful?

  1. Interacting with discord.lib's client

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.

PreviouswebhookClientNextbot activities

Last updated 5 years ago

Was this helpful?

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 .

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

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`)
})
discord.js
this page