JavaScript
- 1 ответ
- 0 вопросов
1
Вклад в тег
function changeColor() {
for (let index = 0; index < servers.length; ++index) {
bot.guilds.get(servers[index]).roles.find(role => role.name === "RoleName").setColor(rainbow[place])
.catch(console.error);
if(rbconf.logging){
console.log(`[ColorChanger] Changed color to ${rainbow[place]} in server: ${servers[index]}`);
}
if(place == (size - 1)){
place = 0;
}else{
place++;
}
}
}