diff --git a/lib/Structures/Role.js b/lib/Structures/Role.js index f32eb0e4e..79eed38df 100644 --- a/lib/Structures/Role.js +++ b/lib/Structures/Role.js @@ -130,7 +130,7 @@ var Role = (function () { }; Role.prototype.colorAsHex = function colorAsHex() { - var val = this.color.toString(); + var val = this.color.toString(16); while (val.length < 6) { val = "0" + val; } diff --git a/lib/Util/TokenCacher-shim.js b/lib/Util/TokenCacher-shim.js index 53412d365..f483e9575 100644 --- a/lib/Util/TokenCacher-shim.js +++ b/lib/Util/TokenCacher-shim.js @@ -6,23 +6,23 @@ exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var TokenCacher = (function () { - function TokenCacher() { - _classCallCheck(this, TokenCacher); - } + function TokenCacher() { + _classCallCheck(this, TokenCacher); + } - TokenCacher.prototype.setToken = function setToken() {}; + TokenCacher.prototype.setToken = function setToken() {}; - TokenCacher.prototype.save = function save() {}; + TokenCacher.prototype.save = function save() {}; - TokenCacher.prototype.getToken = function getToken() { - return null; - }; + TokenCacher.prototype.getToken = function getToken() { + return null; + }; - TokenCacher.prototype.init = function init(ind) { - this.done = true; - }; + TokenCacher.prototype.init = function init(ind) { + this.done = true; + }; - return TokenCacher; + return TokenCacher; })(); exports["default"] = TokenCacher; diff --git a/src/Structures/Role.js b/src/Structures/Role.js index 770079c31..3c3357c51 100644 --- a/src/Structures/Role.js +++ b/src/Structures/Role.js @@ -125,7 +125,7 @@ export default class Role { } colorAsHex(){ - var val = this.color.toString(); + var val = this.color.toString(16); while(val.length < 6){ val = "0" + val; }