mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Added Colors file
removed colours for consistency
This commit is contained in:
7
lib/Color.js
Normal file
7
lib/Color.js
Normal 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);
|
||||
};
|
||||
@@ -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);
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user