Skip to content

role.setColor() only works sometimes #672

Answered by almostSouji
calmoon808 asked this question in Q&A
Discussion options

You must be logged in to vote

Role edits (as almost all API calls) are subject to API rate limiting. Discord.js handles rate limits for you, however, we strictly discourage spamming the API.

Changing the role color on a short interval is the prime example (dubbed "rainbow roles") for API abuse and something you should avoid doing.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by almostSouji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants