discord.js-banner

1.0.2 • Public • Published
const Banner = require('discord.js-banner')
const banner =  new  Banner(process.env.DISCORD_TOKEN);
const member = message.member;
const userBanner=await banner.get(member.user.id, 2048 ) // return user And banner
    if (!userBanner.success)
		    console.log(userBanner.error);
	message.send(`user banner : ${userBanner.banner}`) 

ٍExample

if (message.content('!mybanner'))
{
	const { member } = message;
    const userBanner = await banner.get(member.user.id)
      if (!userBanner.success)
    	 message.send(userBanner.error);
	  message.send(userBanner.banner) 
  }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i discord.js-banner

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.54 kB

Total Files

3

Last publish

Collaborators

  • sajjadmrx