From bb79b9d4ab91dbdba0d5ab4b25677d18d1b0bd8f Mon Sep 17 00:00:00 2001 From: janderedev Date: Sat, 7 May 2022 21:33:20 +0200 Subject: [PATCH] the fuck --- bridge/src/types/GenericEmbed.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridge/src/types/GenericEmbed.ts b/bridge/src/types/GenericEmbed.ts index 910c15e..2113b39 100644 --- a/bridge/src/types/GenericEmbed.ts +++ b/bridge/src/types/GenericEmbed.ts @@ -9,7 +9,6 @@ export default class GenericEmbed { if (embed.url) this.url = embed.url; else if (embed.author?.url) this.url = embed.author.url; - if (!this.icon?.match(/^http(s)?\:\/\//)) this.url = undefined; if (this.title && embed.author?.iconURL) this.icon = embed.author.iconURL; @@ -58,7 +57,7 @@ export default class GenericEmbed { embed.icon_url = this.icon; embed.url = this.url; embed.colour = this.color?.toString(); - + // todo: embed.media needs to be an autumn url. we might // want to download and reupload the attachment.