Skip to content

Get user banners with discord-banners!

License

Notifications You must be signed in to change notification settings

Cennk/discord-banners

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

Get user banners with discord-banners!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%