diff --git a/src/class/RichEmbed.ts b/src/class/RichEmbed.ts index 307f9c5..fba5d52 100644 --- a/src/class/RichEmbed.ts +++ b/src/class/RichEmbed.ts @@ -87,7 +87,7 @@ export default class RichEmbed implements EmbedData { */ setURL(url: string) { if (typeof url !== 'string') throw new TypeError('RichEmbed URLs must be a string.'); - if (!url.startsWith('http://') || !url.startsWith('https://')) url = `https://${url}`; + if (!url.startsWith('http://') && !url.startsWith('https://')) url = `https://${url}`; this.url = encodeURI(url); return this; }