From dd07786fe8e6c89531e7866bd68224a6fa7a7655 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 2 Apr 2021 20:15:13 +0300 Subject: [PATCH] !server: fix banner URL not being masked; rename links from 'URL' to 'Link' --- backend/src/plugins/Utility/functions/getServerInfoEmbed.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts index 3704da97..6d5fe48e 100644 --- a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts +++ b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts @@ -82,11 +82,11 @@ export async function getServerInfoEmbed( }); // IMAGE LINKS - const iconUrl = `[URL](${(restGuild || guildPreview)!.iconURL})`; - const bannerUrl = restGuild?.bannerURL ?? "Unavailable"; + const iconUrl = `[Link](${(restGuild || guildPreview)!.iconURL})`; + const bannerUrl = restGuild?.bannerURL ? `[Link](${restGuild?.bannerURL})` : "None"; const splashUrl = (restGuild || guildPreview)!.splashURL != null - ? `[URL](${(restGuild || guildPreview)!.splashURL?.replace("size=128", "size=2048")})` + ? `[Link](${(restGuild || guildPreview)!.splashURL?.replace("size=128", "size=2048")})` : "None"; embed.fields.push(