3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

!server: fix banner URL not being masked; rename links from 'URL' to 'Link'

This commit is contained in:
Dragory 2021-04-02 20:15:13 +03:00
parent 2e5224124f
commit dd07786fe8
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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(