From 3f34a463e92a80d92ef56ca721fb87fa7721d5c8 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 2 Apr 2021 20:17:29 +0300 Subject: [PATCH] Clean up unnecessary optional chaining --- backend/src/plugins/Utility/functions/getServerInfoEmbed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts index 6d5fe48e..0a7564cc 100644 --- a/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts +++ b/backend/src/plugins/Utility/functions/getServerInfoEmbed.ts @@ -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")})`