diff --git a/src/class/RichEmbed.ts b/src/class/RichEmbed.ts index 7df2ec0..38cf297 100644 --- a/src/class/RichEmbed.ts +++ b/src/class/RichEmbed.ts @@ -75,7 +75,7 @@ export default class RichEmbed implements EmbedOptions { */ 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; }