1.0.2 • Published 3 years ago

discord.js-banner v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago
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) 
  }