3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00

Clean up unnecessary optional chaining

This commit is contained in:
Dragory 2021-04-02 20:17:29 +03:00
parent 4ee5a59dc8
commit f66b19994f

View file

@ -83,7 +83,7 @@ export async function getServerInfoEmbed(
// IMAGE LINKS
const iconUrl = `[Link](${(restGuild || guildPreview)!.iconURL})`;
const bannerUrl = restGuild?.bannerURL ? `[Link](${restGuild?.bannerURL})` : "None";
const bannerUrl = restGuild?.bannerURL ? `[Link](${restGuild.bannerURL})` : "None";
const splashUrl =
(restGuild || guildPreview)!.splashURL != null
? `[Link](${(restGuild || guildPreview)!.splashURL?.replace("size=128", "size=2048")})`