DEV Community

Cover image for Welcome Discord Users Awesomely!
Kunal Kande Patil
Kunal Kande Patil

Posted on • Edited on

Welcome Discord Users Awesomely!

Greetify is a Futuristic welcome card canvas library.

Installation

npm install greetify
Enter fullscreen mode Exit fullscreen mode

Usage

I'm using discord.js library to integrate greetify in bot.

// Assuming you defined client
const { Minimal } = require("greetify");

client.on("guildMemberAdd", async member => {
    const message = `YOU ARE ${member.guild.memberCount}TH MEMBER`

    const card = await Minimal({
        name: member.user.username,
        avatar: member.user.displayAvatarURL({
            size: 4096 // For High Res Avatar
        }),
        type: "WELCOME",
        message: message
    })

    const channel = member.guild.channels.cache.get("1201155869610627212");

    return channel.send({
        files: [{
            attachment: card
        }]
    })
})
Enter fullscreen mode Exit fullscreen mode

Themes

Minimal

minimal

const { Minimal } = require("greetify");
const fs = require('fs')

Minimal({
    avatar: "https://cdn.discordapp.com/avatars/786504767358238720/f65e8322c0c290e7fc1d9ad20322256b.webp",
    name: "FLAMEFACE",
    type: "WELCOME"
}).then(x => {
    fs.writeFileSync("greetify.png", x)
})
Enter fullscreen mode Exit fullscreen mode

Panorama

panorama

const { Panorama } = require("greetify");
const fs = require('fs')

Panorama({
    avatar: "https://cdn.discordapp.com/avatars/786504767358238720/f65e8322c0c290e7fc1d9ad20322256b.webp",
    name: "FLAMEFACE",
    type: "WELCOME"
}).then(x => {
    fs.writeFileSync("greetify.png", x)
})
Enter fullscreen mode Exit fullscreen mode

For more info check out our Github

Top comments (2)

Collapse
 
thomasbnt profile image
Thomas Bnt • Edited

i really liked the banner design, thanks a lot for share your post 👏🙌
I also seen it's easy to integrate your package, very great job!

Collapse
 
flameface profile image
Kunal Kande Patil

Awesome!