fix richembed set thumbnail func

merge-requests/1/merge
Matthew 2019-10-30 21:26:17 -04:00
parent 2674a955b0
commit fd4cd6a9b3
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 0 additions and 1 deletions

View File

@ -149,7 +149,6 @@ export default class RichEmbed {
*/ */
setThumbnail(url: string) { setThumbnail(url: string) {
if (typeof url !== 'string') throw new TypeError('RichEmbed Thumbnail URLs must be a 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 }; this.thumbnail = { url };
return this; return this;
} }