From 026cc7ddb1679901bfe57a029d943dc26a32de87 Mon Sep 17 00:00:00 2001 From: Emily J Date: Wed, 28 Oct 2020 12:17:23 +1100 Subject: [PATCH] why does this check exist --- bot/util/embed.js | 1 - 1 file changed, 1 deletion(-) diff --git a/bot/util/embed.js b/bot/util/embed.js index 5c32571..a2df58d 100644 --- a/bot/util/embed.js +++ b/bot/util/embed.js @@ -101,7 +101,6 @@ class RichEmbed { */ setImage (imageURL) { if (typeof imageURL !== 'string') throw new TypeError(`Expected type 'string', received type ${typeof imageURL}`); - if (!imageURL.startsWith('attachment://') && !URL_REGEX.test(imageURL)) throw new Error('Not a well formed URL'); this.image = { url: imageURL }; return this; }