WE USE PROPER ENGLISH HERE
This commit is contained in:
parent
fef9f1c09e
commit
0740dcb664
4 changed files with 6 additions and 6 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue