Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-canvascard

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-canvascard

Un paquete para simplificar el uso de lienzo para Discord!

  • 1.5.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

discord-canvascard

downloadsBadge versionBadge doc

Fácil de usar !!

¿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!

Installation

$ npm install --save discord-canvascard

¡Haga clic aquí para ver la documentación!

Example GoodBye

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] });

Example Fortnite Shop

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] });

Example Fortnite Stats

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] });

Contribuyendo

Si tiene una solicitud para una nueva función, puede abrir un problema en Github. ¡Se agradecen las solicitudes de extracción!

Credits

Created by SrGobi con ❤️# discord-canvascard

Keywords

FAQs

Package last updated on 27 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc