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
  • Examples
  • Example of making a rich embed
  • Example of sending webhook message

Was this helpful?

  1. Interacting with discord.lib's client

Discord

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.

PreviousDo servercount in commandsNextmusicClient

Last updated 5 years ago

Was this helpful?

You could use this to do things like creating a rich embed.

Examples

Example of making a rich embed

You could view all of the embed variable(It is the same as the library )

const dl = require("discord.lib")
const embed = new dl.Discord.RichEmbed();
embed.setTitle("help")
embed.addField("A_ban", "Ban a member")

Example of sending webhook message

const dl = require("discord.lib")
// Create a new webhook
const hook = new dl.Discord.WebhookClient('webhook id', 'webhook token');

// Send a message using the webhook
hook.send('I am now alive!');
here
discord.js