1.0.1 • Published 3 years ago

discord-banners v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Discord Banners

discord-banners is a powerful package It is an easy-to-use module where you can see the banner of Discord members!

const { Client } = require('discord.js');
const client = new Client();
const { DiscordBanners } = require('discord-banners');
const discordBanners = new DiscordBanners(client);

// Simple usage example to message event!
client.on('message', async (message) => {
    if(message.content === "what is my banner") {
        const banner = await discordBanners.getBanner(message.author.id, { size: 2048, format: "png", dynamic: true })
        if(banner) return message.channel.send(banner)
        else if(!banner) return message.channel.send("User banner not found!")
    }
});


client.login('YOUR_DISCORD_BOT_TOKEN')

Click here to see public github project!