From 995c5c58aa307bce99448d0d7204148ec96f2a93 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 21:36:10 -0400 Subject: [PATCH] attempt to fix RichEmbed --- src/class/RichEmbed.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/class/RichEmbed.ts b/src/class/RichEmbed.ts index d47660a..25504ac 100644 --- a/src/class/RichEmbed.ts +++ b/src/class/RichEmbed.ts @@ -107,8 +107,6 @@ export default class RichEmbed { if (typeof name !== 'string') throw new TypeError('RichEmbed Author names must be a string.'); if (url && typeof url !== 'string') throw new TypeError('RichEmbed Author URLs must be a string.'); if (icon_url && typeof icon_url !== 'string') throw new TypeError('RichEmbed Author icons must be a string.'); - if (!url.startsWith('http://') || !url.startsWith('https://')) url = `https://${url}`; - if (!icon_url.startsWith('http://') || !icon_url.startsWith('https://')) icon_url = `https://${icon_url}`; this.author = { name, icon_url, url }; return this; }