{"id":14983343,"url":"https://github.com/nandhu-44/rainbowroles","last_synced_at":"2025-10-29T22:30:16.914Z","repository":{"id":57213280,"uuid":"454849289","full_name":"nandhu-44/RainbowRoles","owner":"nandhu-44","description":"A  library to allow rainbow roles in djs in the legal way!","archived":false,"fork":false,"pushed_at":"2022-03-05T04:55:30.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T05:11:05.705Z","etag":null,"topics":["bot","djs","rainbow-role"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nandhu-44.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-02T16:24:55.000Z","updated_at":"2023-10-18T09:48:18.000Z","dependencies_parsed_at":"2022-08-24T21:01:36.444Z","dependency_job_id":null,"html_url":"https://github.com/nandhu-44/RainbowRoles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandhu-44%2FRainbowRoles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandhu-44%2FRainbowRoles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandhu-44%2FRainbowRoles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandhu-44%2FRainbowRoles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nandhu-44","download_url":"https://codeload.github.com/nandhu-44/RainbowRoles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238900178,"owners_count":19549464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","djs","rainbow-role"],"created_at":"2024-09-24T14:07:05.474Z","updated_at":"2025-10-29T22:30:15.341Z","avatar_url":"https://github.com/nandhu-44.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Rainbow Roles\n\u003eNote: This package does not abuse Discord Api in any manner!\n\n### Example Bot\n```js\nconst { Client } = require(\"discord.js\")\nconst client = new Client({\n  intents: 32767,//All the intents, you can use yours too\n})\n\nconst { RainbowRole } = require(\"djs-rainbow\")\n\n//This feature can be used in any events like messageCreate but i am using in ready event.\n\nclient.on(\"ready\", async() =\u003e {\n\n  const Rainbow = new RainbowRole({\n  client:client,//Or your client object\n  guildId:\"123456789012345\",//Server Id\n  roleId:\"123456789012345\",//Role Id\n  interval:90000 // this is the time\n  \n})\nRainbow.start() //Initialize this feature\n\nconsole.log(\"Bot is online!\")\n\n})\n\nclient.login(\"Discord bot token\")\n\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n#### __Options__ \n\n```js\n{\nclient:client,    //Required! , default none\nguildId:\"guildid\",//Required! , default none\nroleId:\"roleId\",  //Required! , default none\ninterval:90000    //Not Required! , default 90 seconds\n}\n```\n\nIf you need any help then feel free to join the [Support Server](https://discord.gg/zyRX8nNt7b)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnandhu-44%2Frainbowroles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnandhu-44%2Frainbowroles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnandhu-44%2Frainbowroles/lists"}