Attachments

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.

Our package gives you a feature to send attachment. This doc shows you how to do it.

Param

Examples

Example of not using buffer

const dl = require("discord.lib")
dl.attachment("command", "https://example.com/image.png/ or ./path/to/your/file");
dl.login("token", "I am the best bot!")

Example of using buffer

You are require to specify an directory.

const dl = require("discord.lib")
dl.attachment("command", "./path/to/your/file.js", "buffer");
dl.login("token", "I am the best bot!")

Last updated