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
  • shardManager
  • Param
  • Example
  • broadcastEval
  • Param
  • Example

Was this helpful?

  1. classes

sharding

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.

shardManager

This allows you to shard your discord bot.

Param

Name

Description

Required

file

path to your main file

yes

amount

shard amount(Do not put "" around the amount!)

yes

Example

On a new file, write this file down

const dl = require("discord.lib")
dl.shardManager("./path/to/your/file.js", 2)

You still put your login function in your main file.

broadcastEval

This send a message to all shards

Param

Title

Description

Required

script

The js script

yes

Example

const dl = require("discord.lib")
dl.shardManager("./path/to/your/file.js", 2)
dl.broadcastEval(`(${funcName})('${arg}')`);
PreviousAttachmentsNextTypings

Last updated 5 years ago

Was this helpful?