Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
discord-canvascard
Advanced tools
Un paquete para simplificar el uso de lienzo para Discord!
¿Quieres desarrollar un bot de discordia utilizando la biblioteca Discord.js y quieres integrar buenas imágenes en Canvas? discord-canvascard está hecho para ti! ¡Puede crear excelentes imágenes de bienvenida, imágenes de despedida y otras imágenes divertidas totalmente personalizables utilizando las muchas funciones fáciles de usar!
$ npm install --save discord-canvascard
const Discord = require("discord.js");
const Canvas = require("discord-canvascard");
const image = await new Canvas.Goodbye()
.setAvatar("https://www.site.com/avatar.jpg")
.setTitulo("GOODBYE")
.setSubtitulo("Descripcion personalizable!")
.setColorTitulo("#FFFFFF")
.setColorSubtitulo("#5865f2")
.setColorCircle("#FFFFFF")
.setColorBorder("#000000")
.setOpacityBorder("0.4")
.setBackground("https://site.com/background.jpg")
.toAttachment();
const attachment = new Discord.Attachment(image.toBuffer(), "goodbye-image.png");
message.channel.send({ files: [attachment] });
const Discord = require("discord.js");
const Canvas = require("discord-canvascard");
const image = await new Canvas.FortniteShop()
.setToken("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.toAttachment();
let attachment = new Discord.Attachment(image, "FortniteShop.png");
message.channel.send({ files: [attachment] });
const Discord = require("discord.js");
const Canvas = require("discord-canvascard");
const user = "BLDSrGobi",
platform = "pc";
let image = await new Canvas.FortniteStats()
.setToken("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.setUser(user)
.setPlatform(platform)
.toAttachment();
if (platform !== "pc" && platform !== "xbl" && platform !== "psn") return message.channel.send("Ingrese una plataforma válida")
if (!image) return message.channel.send("Usuario no encontrado")
let attachment = new Discord.Attachment(image.toBuffer(), "FortniteStats.png");
message.channel.send({ files: [attachment] });
Si tiene una solicitud para una nueva función, puede abrir un problema en Github. ¡Se agradecen las solicitudes de extracción!
Created by SrGobi con ❤️# discord-canvascard
FAQs
Un paquete para simplificar el uso de lienzo para Discord!
We found that discord-canvascard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.