attempt to fix RichEmbed

merge-requests/1/merge
Matthew 2019-10-27 21:36:10 -04:00
parent a859352f39
commit 995c5c58aa
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}