This commit is contained in:
parent
973bf59cc7
commit
6f39c42c7b
|
@ -3,3 +3,4 @@ node_modules/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
test.sh
|
test.sh
|
||||||
.vscode
|
.vscode
|
||||||
|
tmp
|
|
@ -119,6 +119,10 @@ commands.color = {
|
||||||
role = colorRoles.findColorRole(message.member);
|
role = colorRoles.findColorRole(message.member);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*if (!role) { // somehow this happened
|
||||||
|
let a = 0;
|
||||||
|
while (!(role = colorRoles.findColorRole(message.member)) && a++ < 10) {}
|
||||||
|
}*/
|
||||||
role.setColor(str.toUpperCase());
|
role.setColor(str.toUpperCase());
|
||||||
message.react("🆗");
|
message.react("🆗");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue