1.0.3 • Published 2 years ago

discord-banners-js v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Hey, i will show you how to use the module : type npm i discord-banners-js in your terminal

const Discord = require('discord.js')
const banner = require('discord-banners-js')
// will get the module


const user = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member
// will get the user for get the banner

const bannerurl = await banner(user.user.id, "your bot token here", { size : 4096 }) // in first you have to give the userid, after your bot token, and the size you want, i recommend you 4096

if(bannerurl) { // if the user have a banner
   
   const embed = new Discord.MessageEmbed() // your embed is personal, you can take my embed
   .setTitle(`Here is the banner of ${user.user.username}!`)
   .setImage(`${bannerurl}`)
   .setColor(`RANDOM`)

   message.channel.send({embeds : [embed]}) // now send the embed with the banners
}
else { // if user doesn't have a banner

return message.channel.send(`${user.user.username} doesn't have a banner :/`) 

}


so, come on discord ( 999.Frost#0999 ) if you need help or something, enjoy !
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago