welcome-discord

1.0.1 • Public • Published

welcome-discord

Install package:

npm i welcome-discord

Demo:

const WelcomeDiscord = require('welcome-discord')

const Discord = require('discord.js')

module.exports = client => {
    client.on('guildMemberAdd', async member => {
        let imageLoad = new WelcomeDiscord()
        imageLoad.setAvatar( `https://cdn.discordapp.com/avatars/${member.user.id}/${member.user.avatar}.jpg?size=256`)
        .setCount(member.guild.memberCount)
        .setUsername(member.user.username)
        .setDiscriminator(member.user.discriminator)
        member.guild.channels.cache.get(`${channelIdWelcome}`).send(member.user.toString(), await imageLoad.build())
    })
}

Package Sidebar

Install

npm i welcome-discord

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

458 kB

Total Files

6

Last publish

Collaborators

  • hypnguyen1209