Added invite functionality and changed the EJS

This commit is contained in:
ION606
2023-04-01 21:49:27 -04:00
parent e0ffe24eec
commit f1415a9840
25 changed files with 589 additions and 201 deletions
+3 -6
View File
@@ -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
View File
@@ -1,4 +1,4 @@
module.exports = {
export default {
Default: 0x000000,
White: 0xffffff,
Aqua: 0x1abc9c,