discord-autorole-badges

Discord.js extention library for giving roles with Discord User badges

Usage no npm install needed!

<script type="module">
  import discordAutoroleBadges from 'https://cdn.skypack.dev/discord-autorole-badges';
</script>

README

Discord AutoRole Badges

downloadsBadge versionBadge

Discord AutoRole Badges is a powerful Node.js module that allows you to easily give badges roles when new member join a server

If you don't understand something in this page, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Support Server

Installation

npm i discord-autorole-badges

Example

const {Manager} = require('discord-autorole-badges');
const {Client} = require('discord.js');
const client = new Client({ intents: 32767})


let manager = new Manager(client, {
    DISCORD_EMPLOYEE: "XXXXXX",
    PARTNERED_SERVER_OWNER: "XXXXXX",
    HYPESQUAD_EVENTS: "XXXXXX",
    BUGHUNTER_LEVEL_1: "XXXXXX",
    HOUSE_BRAVERY: "XXXXXX",
    HOUSE_BRILLIANCE: "XXXXXX",
    HOUSE_BALANCE: "XXXXXX",
    EARLY_SUPPORTER: "XXXXXX",
    TEAM_USER: "XXXXXX",
    BUGHUNTER_LEVEL_2: "XXXXXX",
    VERIFIED_BOT: "XXXXXX",
    EARLY_VERIFIED_BOT_DEVELOPER: "XXXXXX",
    DISCORD_CERTIFIED_MODERATOR: "XXXXXX",

})
client.on("guildMemberAdd", async (member) => {
    await manager.setRole(member);
})

client.on("ready", () => {
    console.log("ready")
})

client.login("SUPER_SECRET_TOKEN")

List of supported badges by the package: Links:

    DISCORD_EMPLOYEE
    PARTNERED_SERVER_OWNER
    HYPESQUAD_EVENTS
    BUGHUNTER_LEVEL_1
    HOUSE_BRAVERY
    HOUSE_BRILLIANCE
    HOUSE_BALANCE
    EARLY_SUPPORTER
    TEAM_USER
    BUGHUNTER_LEVEL_2
    VERIFIED_BOT
    EARLY_VERIFIED_BOT_DEVELOPER
    DISCORD_CERTIFIED_MODERATOR