discord-reactions-roles

A simple and powerful module for discord.js that adds the functionality of roles by reaction

APACHE-2.0 License

Downloads
108
Stars
3
Committers
1

About

Discord Reactions Roles is a modern and powerful Node.js module for creating a reaction role system in your Discord bot.

  • Simple & easy to use
  • Beginner friendly
  • Minimum load
  • Multiple servers

Installation

Node.js 16.9.0 or newer is required.

$ npm install discord-reactions-roles
$ yarn add discord-reactions-roles
$ pnpm add discord-reactions-roles

Example Usage

const { Client, GatewayIntentBits, Partials } = require('discord.js');
const { ReactionsRoles } = require('discord-reactions-roles');

const client = new Client({
    intents: [
        GatewayIntentBits.Guilds,
        GatewayIntentBits.GuildMembers,
        GatewayIntentBits.GuildMessages,
        GatewayIntentBits.GuildMessageReactions
    ],

    partials: [
        Partials.Message,
        Partials.Reaction,
        Partials.User
    ]
});

client.reactions = new ReactionsRoles(client);

client.on('ready', async () => {
  	return console.log('Client is ready!');
})

client.reactions.on('ready', async () => {
	return console.log('ReactionsRoles is ready!');
})

client.login('YOUR_CLIENT_TOKEN_HERE');

Links

Package Rankings
Top 22.51% on Npmjs.org
Related Projects