Added Colors file

removed colours for consistency
This commit is contained in:
hydrabolt
2015-10-26 13:36:13 +00:00
parent 08ffd473e4
commit 1de2c5e5be
7 changed files with 42 additions and 14 deletions

7
lib/Color.js Normal file
View File

@@ -0,0 +1,7 @@
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Color = function Color() {
_classCallCheck(this, Color);
};

View File

@@ -68,12 +68,6 @@ var ServerPermissions = (function () {
};
_createClass(ServerPermissions, [{
key: "colour",
get: function get() {
// screw the american spelling
return this.color;
}
}, {
key: "createInstantInvite",
get: function get() {
return this.getBit(0);

View File

@@ -3,10 +3,12 @@
var request = require("superagent");
var Endpoints = require("./Endpoints.js");
var Client = require("./Client.js");
var Colors = require("../ref/colours.js");
var Discord = {
Endpoints: Endpoints,
Client: Client
Client: Client,
Colors: Colors
};
Discord.patchStrings = function () {