This commit is contained in:
janderedev 2022-05-07 21:33:20 +02:00
parent 2edc1581f4
commit bb79b9d4ab
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -9,7 +9,6 @@ export default class GenericEmbed {
if (embed.url) this.url = embed.url; if (embed.url) this.url = embed.url;
else if (embed.author?.url) this.url = embed.author.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; 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.icon_url = this.icon;
embed.url = this.url; embed.url = this.url;
embed.colour = this.color?.toString(); embed.colour = this.color?.toString();
// todo: embed.media needs to be an autumn url. we might // todo: embed.media needs to be an autumn url. we might
// want to download and reupload the attachment. // want to download and reupload the attachment.