discord-reactions-roles
v1.0.5
Published
A simple and powerful module for adding a reaction role system to your discord.js project
Downloads
45
Maintainers
Readme
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
NPM: Open
GitHub: Open
Documentation: Open
Module Developer: xyligan
Developer Discord: ♡ xүℓ[ι]gαη4εg ♡#9457
Support Server: Join xyligan development