3ijtKwijt/Discord-Rainbow-Role

I need HELP !

Opened this issue · 1 comments

Everytime I try to run the program after 1 min. (60.000 ms) it gives me this error:
image

A friend of mine had exactly the same problem. I fixed the code, added some improvements and opened a PR.

Basically the Discord JS lib has changed so that the get and find functions are not available like this anymore. Instead you can do it like this:

client.guilds.cache.get(servers[index]).roles.cache.find(r => r.name === config.roleName).setColor(rainbow[place]).catch(console.error);

So by simply replacing the line 29 by this code, it should work.

Greetings
Kunoichi of destiny😋