attach-buffer
v1.0.2
Published
A simple attach buffer.
Downloads
2
Readme
attach-buffer Package!
Download Package
npm i attach-buffer
Import
import { BufferBuilder } from 'attach-buffer';
//or
const { BufferBuilder } = require('attach-buffer');
Usage
const buffer = new BufferBuilder();
const attach = await buffer.toBuffer(//url, name);
message.channel.send({ files: [attach.load] });
Examples
const buffer = new BufferBuilder();
const attach = await buffer.toBuffer("https://media.discordapp.net/attachments/914126480852811826/1006999795174490122/eb5acc31-2f20-4b90-a2e7-84f9d4d68298.jpg", "file.png");
message.channel.send({ files: [attach.load] });
Finsh
My Server: Robux Factory
Version
1.0.2
Developer
Slayver#0680