From bfde851211e820b883c40699dee719b7b7d19a33 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 27 Oct 2019 22:11:57 -0400 Subject: [PATCH] fix richembed shit again --- src/class/RichEmbed.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/class/RichEmbed.ts b/src/class/RichEmbed.ts index 25504ac..9ebc0e4 100644 --- a/src/class/RichEmbed.ts +++ b/src/class/RichEmbed.ts @@ -170,7 +170,6 @@ export default class RichEmbed { setFooter(text: string, icon_url?: string) { if (typeof text !== 'string') throw new TypeError('RichEmbed Footers must be a string.'); if (icon_url && typeof icon_url !== 'string') throw new TypeError('RichEmbed Footer icon URLs must be a string.'); - if (!icon_url.startsWith('http://') || !icon_url.startsWith('https://')) icon_url = `https://${icon_url}`; if (text.length > 2048) throw new RangeError('RichEmbed footer text may not exceed 2048 characters.'); this.footer = { text, icon_url }; return this;