Package Exports
- discord-welcome-card
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord-welcome-card) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Discord Welcome Card
Simple Goodbye and welcome cards
Examples
Welcome Card
const Discord = require("discord.js");
const { welcomeImage } = require('discord-welcome-card');
const client = new Discord.Client();
client.on("message", async message => {
//Generating the actual welcome Card
const image = await welcomeImage(message.member, 'code');
message.channel.send(new Discord.MessageAttachment(image, 'welcome.png'))
});
Goodbye Card
const Discord = require("discord.js");
const { goodbyeImage } = require('discord-welcome-card');
const client = new Discord.Client();
client.on("message", async message => {
//Generating the actual welcome Card
const image = await goodbyeImage(message.member, 'code');
message.channel.send(new Discord.MessageAttachment(image, 'welcome.png'))
});
client.login('your token here');
Changelog
Version | Content |
---|---|
1.1.4 | new card backgrounds |
1.1.5 | Added Auto Size |
2.0.0 | Switched to typescript |
2.0.1 | Added Custom Card Function |
2.0.2 | Added more typings |
2.1.0 | Added Custom Themes and Fonts |
2.1.1 | Added Custom Functions to CanvasContext |