diff --git a/commands/interaction/slash/info/user.js b/commands/interaction/slash/info/user.js index 79647a5..1ae707f 100644 --- a/commands/interaction/slash/info/user.js +++ b/commands/interaction/slash/info/user.js @@ -98,6 +98,7 @@ module.exports = { return editOrReply(context, userCard) }catch(e){ console.log(e) + return editOrReply(context, createEmbed("error", context, "Unable to display user info.")) } }, }; \ No newline at end of file diff --git a/commands/interaction/user/user.js b/commands/interaction/user/user.js index d5371d9..bee1a9e 100644 --- a/commands/interaction/user/user.js +++ b/commands/interaction/user/user.js @@ -80,6 +80,7 @@ module.exports = { return editOrReply(context, userCard) }catch(e){ console.log(e) + return editOrReply(context, createEmbed("error", context, "Unable to display user info.")) } }, }; \ No newline at end of file diff --git a/commands/message/info/user.js b/commands/message/info/user.js index 6dc9aed..7d62d7f 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -93,8 +93,8 @@ module.exports = { let pages = []; let memberCard = structuredClone(userCard); - if(m?.avatar !== null) memberCard.thumbnail.url = m.avatarUrl + "?size=4096"; - if(m?.banner !== null) memberCard.image.url = `https://cdn.discordapp.com/guilds/${context.guild.id}/users/${m.id}/banners/${m.banner}.png` + "?size=4096"; + if(m?.avatar !== null) memberCard.thumbnail = { url: m.avatarUrl + "?size=4096" }; + if(m?.banner !== null) memberCard.image = { url: `https://cdn.discordapp.com/guilds/${context.guild.id}/users/${m.id}/banners/${m.banner}.png` + "?size=4096" }; // Show the server-specific card first if available pages.push(page(memberCard)) @@ -112,6 +112,7 @@ module.exports = { }); }catch(e){ console.log(e) + return editOrReply(context, createEmbed("error", context, "Unable to display user info.")) } }, }; \ No newline at end of file