🏠 Homepage
npm i welcomify
(async () => {
const { Card } = require("welcomify");
const fs = require("fs");
const card = new Card()
.setTitle("Welcome")
.setName("Remii")
.setAvatar("https://raw.githubusercontent.com/Shiioriii/Welcomify/main/assets/avatar.png")
.setMessage("YOU ARE 300 MEMBERS!")
.setBackground('https://raw.githubusercontent.com/Shiioriii/Welcomify/main/assets/background.jpg')
.setColor("00FF38");
const cardOutput = await card.build();
fs.writeFileSync("cardout.png", cardOutput);
console.log("Done");
})();
const { Card } = require("welcomify");
const { AttachmentBuilder } = require("discord.js");
client.on("guildMemberAdd", async (member) => {
const card = new Card()
.setTitle("Welcome")
.setName(member.user.username)
.setAvatar(member.user.displayAvatarURL({ format: 'png', dynamic: true }))
.setMessage("YOU ARE 300 MEMBER!")
.setBackground('https://raw.githubusercontent.com/oneofremii/Welcomify/main/assets/background.jpg')
.setColor("00FF38");
const cardOutput = await card.build();
const channel = member.guild.channels.cache.get("0000000000000000000"); // channels id
await channel.send({
files: [
{
attachment: cardOutput,
name: `${member.id}.png`,
},
],
});
});
-
.setTitle(title: string) (optional)
- Sets the title of the welcome card.
-
.setName(username: string) (optional)
- Dynamically fetches the username into the welcome card.
-
.setAvatar(avatarURL: string) (required)
- Sets the display avatar in the welcome card.
-
.setMessage(message: string) (optional)
- Specifies a custom message into the welcome card.
-
.setBackground(backgroundURL: string) (optional)
- Sets a custom background image for the welcome card.
-
.setColor(colorCode: string) (optional)
- Defines the color scheme of the
.setName
, use the format without the # symbol.
- Defines the color scheme of the
👤 Remii
- Website: fypmoon.org
- Twitter: @shioriikwkmi
- Github: @oneofremii
Contributions, issues, and feature requests are welcome! Check the issues page and contributing guide.
Give a ⭐️ if this project helped you!