Skip to content

A library to allow rainbow roles in djs in the legal way!

Notifications You must be signed in to change notification settings

nandhu-44/RainbowRoles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rainbow Roles

Note: This package does not abuse Discord Api in any manner!

Example Bot

const { Client } = require("discord.js")
const client = new Client({
  intents: 32767,//All the intents, you can use yours too
})

const { RainbowRole } = require("djs-rainbow")

//This feature can be used in any events like messageCreate but i am using in ready event.

client.on("ready", async() => {

  const Rainbow = new RainbowRole({
  client:client,//Or your client object
  guildId:"123456789012345",//Server Id
  roleId:"123456789012345",//Role Id
  interval:90000 // this is the time
  
})
Rainbow.start() //Initialize this feature

console.log("Bot is online!")

})

client.login("Discord bot token")


Options

{
client:client,    //Required! , default none
guildId:"guildid",//Required! , default none
roleId:"roleId",  //Required! , default none
interval:90000    //Not Required! , default 90 seconds
}

If you need any help then feel free to join the Support Server

About

A library to allow rainbow roles in djs in the legal way!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published