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){