Clean up unnecessary optional chaining

This commit is contained in:
Dragory 2021-04-02 20:17:29 +03:00
parent dd07786fe8
commit 3f34a463e9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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")})`