WE USE PROPER ENGLISH HERE
This commit is contained in:
parent
fef9f1c09e
commit
0740dcb664
4 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ module.exports = class {
|
|||
const embed = new Embed()
|
||||
.setTitle('Users on blocklist: ' + data.guild.blocklist.length)
|
||||
.setDescription('```' + list.join(', ') + '```')
|
||||
.setColor('PINK');
|
||||
.setColour(client.functions.displayHexColour(message.channel.guild, client.user.id));
|
||||
|
||||
message.channel.createMessage({ embed: embed });
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ module.exports = class {
|
|||
|
||||
const embed = new Embed()
|
||||
.setTitle(colour)
|
||||
.setColor(colour)
|
||||
.setColour(colour)
|
||||
.setImage(`https://fakeimg.pl/256x256/${colour.replace('#', '')}/?text=%20`);
|
||||
|
||||
message.channel.createMessage({ embed: embed });
|
||||
|
|
|
@ -28,7 +28,7 @@ module.exports = class {
|
|||
.then(json => {
|
||||
const embed = new Embed()
|
||||
.setTitle(`${json.data.name} (No. ${json.data.number})`)
|
||||
.setColor(client.functions.randomColour())
|
||||
.setColour(client.functions.displayHexColour(message.channel.guild, client.user.id))
|
||||
.setURL('https://www.mezzacotta.net/garfield/?comic=' + json.data.number)
|
||||
.setImage(json.data.image.src);
|
||||
message.channel.createMessage({ embed: embed });
|
||||
|
|
|
@ -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…
Reference in a new issue