Structures
npm i @cycloneaddons/welcomer
An unique Animated Welcome Image Generate For Discord
Eassy To Use in Discord.js & Aoi.js
Example For Discord.js v13
const { Client, Intents, MessageAttachment } = require('discord.js');
const Welcomer = require('@cycloneaddons/welcomer');
const client = new Client({
intents: [
Intents.FLAGS.GUILD_MEMBERS
]
})
client.on("ready", () => {
console.log("Welcome bot is ready and connected to discord!");
})
client.on("guildMemberAdd", async member => {
const image = new Welcomer()
.setBackground("https://media.discordapp.net/attachments/1078243575776682034/1078568707716022334/uwp1085854.gif") //Provide The Gif,Jpg & Png Image Link note image size must less than 3mb
.setGIF(true) //Is Background Image Is Animated or Not option true/false
.setAvatar(member.user.displayAvatarURL({ format: "png" }))
.setName(member.user.username)
.setDiscriminator(member.user.discriminator)
.setBlur(2) //
const channel = await member.guild.channels.fetch()
.then(channels => channels.find(x => x.name === "channel name")) //provide channel name in which u want to send welcome image
return channel?.send({
files: [ new MessageAttachment(await image.generate(), "welcome.gif") ]
})
})
client.login("YOUR TOKEN")
Example For Aoi.js v5
Video Comming Soon