Role hex stuff

This commit is contained in:
Amish Shah
2016-08-27 17:46:08 +01:00
parent f2708dd26f
commit 50c6fa3433
3 changed files with 20 additions and 3 deletions

View File

@@ -354,6 +354,10 @@ class RESTMethods {
data.position = _data.position || role.position;
data.color = _data.color || role.color;
if (data.color.startsWith('#')) {
data.color = parseInt(data.color.replace('#', ''), 16);
}
if (typeof _data.hoist !== 'undefined') {
data.hoist = _data.hoist;
} else {