mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
Added invite functionality and changed the EJS
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const Colors = require('./colors.js');
|
||||
import Colors from './colors.js';
|
||||
|
||||
/**
|
||||
* Resolves a ColorResolvable into a color number.
|
||||
* @param {String} color Color to resolve
|
||||
* @returns {Number} A color
|
||||
*/
|
||||
function resolveColor(color) {
|
||||
export default function resolveColor(color) {
|
||||
if (typeof color === 'string') {
|
||||
if (color === 'Random') return Math.floor(Math.random() * (0xffffff + 1));
|
||||
if (color === 'Default') return 0;
|
||||
@@ -18,7 +18,4 @@ function resolveColor(color) {
|
||||
else if (Number.isNaN(color)) throw new TypeError('COLOR_CONVERT');
|
||||
|
||||
return color;
|
||||
}
|
||||
|
||||
|
||||
module.exports = resolveColor;
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
Default: 0x000000,
|
||||
White: 0xffffff,
|
||||
Aqua: 0x1abc9c,
|
||||
|
||||
Reference in New Issue
Block a user