WE USE PROPER ENGLISH HERE

This commit is contained in:
Emily 2020-10-28 15:48:21 +11:00
parent fef9f1c09e
commit 0740dcb664
4 changed files with 6 additions and 6 deletions

View file

@ -59,9 +59,9 @@ class RichEmbed {
/**
* @param {String|Number} color
*/
setColor (color) {
const resolvedColor = colours[color.toUpperCase()];
if (resolvedColor) color = resolvedColor;
setColour (color) {
const resolvedColour = colours[color.toUpperCase()];
if (resolvedColour) color = resolvedColour;
if (typeof color !== 'string' && typeof color !== 'number') throw new TypeError(`Expected types 'string' or 'number', received type ${typeof color} instead`);
if (typeof color === 'number') {