Welcome Discord Users Awesomely!

flameface

Kunal Kande Patil

Posted on March 18, 2024

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

💖 💪 🙅 🚩
flameface
Kunal Kande Patil

Posted on March 18, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Welcome Discord Users Awesomely!
discord Welcome Discord Users Awesomely!

March 18, 2024