-
Notifications
You must be signed in to change notification settings - Fork 0
AttachmentService
github-actions[bot] edited this page Sep 30, 2024
·
4 revisions
service class for creating and altering attachments and images heavily uses skr canvas |
|
JS |
const { Client } = require('noscord.js');
const client = new Client();
client.import("attachments");
let imgUrl = "https://raw.githubusercontent.com/shysolocup/noscord.js/main/assets/mini%20noscord.js.png";
client.on("ready", async () =>
await attachments.create(imgUrl, { name: "logo", width: 50, height: 50 });
}); |
🛈 create() |
🛈 Attachment |
🛈 resize() |
|
🛈 circlify() |
|
🛈 blow() |