Skip to content

Commit

Permalink
Fixed typos and capitalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsauric committed Oct 21, 2020
1 parent 4e6db18 commit d8182bd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Canvacord.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async facepalm(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
let layer = await Canvas.loadImage(Canvacord.assets("IMAGE").FACEPALM);
let canvas = Canvas.createCanvas(632, 357);
Expand All @@ -486,7 +486,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async rainbow(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
let bg = await Canvas.loadImage(Canvacord.assets("IMAGE").GAY);
let img = await Canvas.loadImage(image);
Expand Down Expand Up @@ -539,7 +539,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async hitler(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(image);
const bg = await Canvas.loadImage(Canvacord.assets("IMAGE").HITLER);
Expand Down Expand Up @@ -579,7 +579,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async jokeOverHead(image) {
if (!image) throw new Error("Image wasn ot provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const layer = await Canvas.loadImage(Canvacord.assets("IMAGE").JOKEOVERHEAD);
const img = await Canvas.loadImage(image)
Expand Down Expand Up @@ -625,7 +625,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async affect(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(image);
const bg = await Canvas.loadImage(Canvacord.assets("IMAGE").AFFECT);
Expand All @@ -646,7 +646,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async jail(image, greyscale = false) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(greyscale ? await Canvacord.greyscale(image) : image);
const bg = await Canvas.loadImage(Canvacord.assets("IMAGE").JAIL);
Expand Down Expand Up @@ -693,7 +693,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async delete(image, dark = false) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(image);
const bg = await Canvas.loadImage(dark ? await Canvacord.invert(Canvacord.assets("IMAGE").DELETE) : Canvacord.assets("IMAGE").DELETE);
Expand Down Expand Up @@ -915,7 +915,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async changemymind(text) {
if (!text) throw new Error("missing text!");
if (!text) throw new Error("Missing text!");
await this.__wait();
const base = await Canvas.loadImage(Canvacord.assets("IMAGE").CHANGEMYMIND);
const canvas = Canvas.createCanvas(base.width, base.height);
Expand Down Expand Up @@ -968,7 +968,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async clyde(message) {
if (!message) messgae = "Please provide text!";
if (!message) message = "Please provide text!";
await this.__wait()
let avatar = await Canvas.loadImage(await Canvacord.circle(Canvacord.assets("IMAGE").CLYDE));
let badge = await Canvas.loadImage(Canvacord.assets("IMAGE").BOTBADGE);
Expand Down Expand Up @@ -1119,7 +1119,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async wanted(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(image);
const bg = await Canvas.loadImage(Canvacord.assets("IMAGE").WANTED);
Expand All @@ -1139,7 +1139,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async wasted(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(await Canvacord.greyscale(image));
const bg = await Canvas.loadImage(Canvacord.assets("IMAGE").WASTED);
Expand Down Expand Up @@ -1204,7 +1204,7 @@ class Canvacord {
* @returns {Promise<Buffer>}
*/
static async shit(image) {
if (!image) throw new Error("image was not provided!");
if (!image) throw new Error("Image was not provided!");
await this.__wait();
const img = await Canvas.loadImage(await Canvacord.circle(image));
const bg = await Canvas.loadImage(Canvacord.assets("IMAGE").SHIT);
Expand Down

0 comments on commit d8182bd

Please sign in to comment.