From e430254ffaaa2a6a2ed7a0180f47a365ea2581a9 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 4 Sep 2024 16:55:02 +0200 Subject: [PATCH] hopefully this fixes that issue --- commands/interaction/slash/info/user.js | 2 +- commands/interaction/user/user.js | 2 +- commands/message/info/user.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/interaction/slash/info/user.js b/commands/interaction/slash/info/user.js index 1e8e2a8..0957afe 100644 --- a/commands/interaction/slash/info/user.js +++ b/commands/interaction/slash/info/user.js @@ -76,7 +76,7 @@ module.exports = { inline: false }] }) - if (u.banner) userCard.image = { url: u.bannerUrl + `?size=4096` } + if (u.banner && u.bannerUrl) userCard.image = { url: u.bannerUrl + `?size=4096` } // Guild Container if (m) { diff --git a/commands/interaction/user/user.js b/commands/interaction/user/user.js index b40b57f..1b376a1 100644 --- a/commands/interaction/user/user.js +++ b/commands/interaction/user/user.js @@ -55,7 +55,7 @@ module.exports = { inline: false }] }) - if (u.banner) userCard.image = { url: u.bannerUrl + `?size=4096` } + if (u.banner && u.bannerUrl) userCard.image = { url: u.bannerUrl + `?size=4096` } // Guild Container if (m) { diff --git a/commands/message/info/user.js b/commands/message/info/user.js index 01e0352..effe1f9 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -66,7 +66,7 @@ module.exports = { inline: false }] }) - if(u.banner) userCard.image = { url: u.bannerUrl + `?size=4096`} + if (u.banner && u.bannerUrl) userCard.image = { url: u.bannerUrl + `?size=4096` } // Guild Container if(m){