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

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

Example

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

Last updated