Skip to content

discord-welcome-card Example Bot in discord.js V13

License

Notifications You must be signed in to change notification settings

discord-card/Miyuki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Version NPM Downloads NPM License Github Size

Discord-Welcome-Card Example Bot V13

Exmaple Bot for discord-welcome-card package in discord.js V13

Setup

.env file

TOKEN=YOUR_DISCORD_BOT_TOKEN

widget

Create Custom Cards

const { MessageAttachment } = require('discord.js')

const image = await drawCard({
    avatar: msg.user.avatarURL({ format: 'png' }),
    blur: true,
    rounded: true,
    text: "Some text",
    subtitle: "Pigeon subtitle",
    theme: {
        image: "./commands/image.png",
        color: new Gradient("linear", {
            color: "#4287f5",
            offset: 1
        }, {
            color: "#f5426f",
            offset: 0
        })
    }
});

interaction.reply({ files: [new MessageAttachment(image, 'welcome.png')] })

About

discord-welcome-card Example Bot in discord.js V13

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •