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()
 | 
					            const embed = new Embed()
 | 
				
			||||||
                .setTitle('Users on blocklist: ' + data.guild.blocklist.length)
 | 
					                .setTitle('Users on blocklist: ' + data.guild.blocklist.length)
 | 
				
			||||||
                .setDescription('```' + list.join(', ') + '```')
 | 
					                .setDescription('```' + list.join(', ') + '```')
 | 
				
			||||||
                .setColor('PINK');
 | 
					                .setColour(client.functions.displayHexColour(message.channel.guild, client.user.id));
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
            message.channel.createMessage({ embed: embed });
 | 
					            message.channel.createMessage({ embed: embed });
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,7 +39,7 @@ module.exports = class {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const embed = new Embed()
 | 
					        const embed = new Embed()
 | 
				
			||||||
            .setTitle(colour)
 | 
					            .setTitle(colour)
 | 
				
			||||||
            .setColor(colour)
 | 
					            .setColour(colour)
 | 
				
			||||||
            .setImage(`https://fakeimg.pl/256x256/${colour.replace('#', '')}/?text=%20`);
 | 
					            .setImage(`https://fakeimg.pl/256x256/${colour.replace('#', '')}/?text=%20`);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        message.channel.createMessage({ embed: embed });
 | 
					        message.channel.createMessage({ embed: embed });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ module.exports = class {
 | 
				
			||||||
                .then(json => {
 | 
					                .then(json => {
 | 
				
			||||||
                    const embed = new Embed()
 | 
					                    const embed = new Embed()
 | 
				
			||||||
                        .setTitle(`${json.data.name} (No. ${json.data.number})`)
 | 
					                        .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)
 | 
					                        .setURL('https://www.mezzacotta.net/garfield/?comic=' + json.data.number)
 | 
				
			||||||
                        .setImage(json.data.image.src);
 | 
					                        .setImage(json.data.image.src);
 | 
				
			||||||
                    message.channel.createMessage({ embed: embed });
 | 
					                    message.channel.createMessage({ embed: embed });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,9 +59,9 @@ class RichEmbed {
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @param {String|Number} color
 | 
					     * @param {String|Number} color
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    setColor (color) {
 | 
					    setColour (color) {
 | 
				
			||||||
        const resolvedColor = colours[color.toUpperCase()];
 | 
					        const resolvedColour = colours[color.toUpperCase()];
 | 
				
			||||||
        if (resolvedColor) color = resolvedColor;
 | 
					        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 !== 'string' && typeof color !== 'number') throw new TypeError(`Expected types 'string' or 'number', received type ${typeof color} instead`);
 | 
				
			||||||
        if (typeof color === 'number') {
 | 
					        if (typeof color === 'number') {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue