0.0.2 • Published 3 years ago

dfghjk v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago
  • This package is similar to canvacord but different design
  • I will be adding more design in the future and will keep updating this package. Hope u like it!
  • If you have a request that u want to be put in the package just DM me in discord Kurooo#5157

Example

const DiscordCanvas = require('@kuroxi/discord-canvas')
const template = new DiscordCanvas.Currency()
    .setBackground('#353535')
    .setProfile(message.author.displayAvatarURL({ format: 'png' }))
    .setUsername(message.author.username)
    .setDiscriminator(message.author.discriminator)
    .setRank(55121)
    .setWallet(125131231)
    .setBank(123137819317)
    .setSeperator('#FFFFFF', 1)

template.build().then((data) => {
    const attachment = new Discord.MessageAttachment(data, 'image-name.png')
    return message.channel.send(attachment)
})

Output

img