From fd4cd6a9b39b7b7cb2ceae25c5fe77ec38e0937f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 30 Oct 2019 21:26:17 -0400 Subject: [PATCH] fix richembed set thumbnail func --- src/class/RichEmbed.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/class/RichEmbed.ts b/src/class/RichEmbed.ts index 9ebc0e4..49d798d 100644 --- a/src/class/RichEmbed.ts +++ b/src/class/RichEmbed.ts @@ -149,7 +149,6 @@ export default class RichEmbed { */ setThumbnail(url: string) { if (typeof url !== 'string') throw new TypeError('RichEmbed Thumbnail URLs must be a string.'); - if (!url.startsWith('http://') || !url.startsWith('https://')) url = `https://${url}`; this.thumbnail = { url }; return this; }