diff --git a/src/modules/utility/userinfo.js b/src/modules/utility/userinfo.js index 0f42dc9..eeabb26 100644 --- a/src/modules/utility/userinfo.js +++ b/src/modules/utility/userinfo.js @@ -57,7 +57,7 @@ userinfo.callback = async function (msg, line) { member = guild.members.get(id); } - // FIXME: horrible, probably needs to be moved out of this function for later + // FIXME: horrible, probably needs to be moved out of this command for later const badges = []; if ((user.flags & UserFlags.STAFF) !== 0) { @@ -96,7 +96,7 @@ userinfo.callback = async function (msg, line) { if ((user.flags & UserFlags.PREMIUM_EARLY_SUPPORTER) !== 0) { badges.push(`[${Icons.badges.early_supporter}](${BadgeURLs.early_supporter})`); } - if (user.banner || user.avatar.startsWith("a_")) { + if ((user.banner || user.avatar.startsWith("a_")) && !user.bot) { badges.push(`[${Icons.badges.premium}](${BadgeURLs.premium})`); } @@ -255,6 +255,8 @@ userinfo.callback = async function (msg, line) { descLines.push(""); if (icons.length > 0) { descLines.push(icons.join("")); + } else { + descLines.push(Icons.offline.replace(":i:", ":Offline:")); } for (const activity of anyMember.activities) { @@ -274,7 +276,9 @@ userinfo.callback = async function (msg, line) { image: { url: banner, }, - title: `${user.global_name ?? user.username} (${formatUsername(user)}) ${user.bot ? Icons.boat : ""}`, + title: `${user.global_name ?? user.username} (${formatUsername(user)}) ${ + user.bot ? Icons.boat.replace(":i:", ":Bot:") : "" + }`, description: descLines.join("\n"), fields: [ { @@ -316,6 +320,9 @@ userinfo.callback = async function (msg, line) { inline: true, }, ].filter((x) => !!x), + footer: { + text: `ID: ${id}`, + }, }; return {embeds: [embed]}; diff --git a/src/util/constants.js b/src/util/constants.js index a99309e..997bd5c 100644 --- a/src/util/constants.js +++ b/src/util/constants.js @@ -426,24 +426,24 @@ module.exports.GuildFeaturesFormatted = { const PRESENCE_ICONS = { desktop: { - online: "<:i:1263597847744352397>", - idle: "<:i:1263597864089555037>", - dnd: "<:i:1263597872268705802>", + online: "<:OnlineDesktop:1263597847744352397>", + idle: "<:IdleDesktop:1263597864089555037>", + dnd: "<:DNDDesktop:1263597872268705802>", }, mobile: { - online: "<:i:1263597896549400647>", - idle: "<:i:1263597887518937160>", - dnd: "<:i:1263597880556654672>", + online: "<:OnlineMobile:1263597896549400647>", + idle: "<:IdleMobile:1263597887518937160>", + dnd: "<:DNDMobile:1263597880556654672>", }, web: { - online: "<:i:1263597918841999361>", - idle: "<:i:1263597912571645983>", - dnd: "<:i:1263597905776742470>", + online: "<:OnlineWeb:1263597918841999361>", + idle: "<:IdleWeb:1263597912571645983>", + dnd: "<:DNDWeb:1263597905776742470>", }, embedded: { - online: "<:i:1263597941051101186>", - idle: "<:i:1263597934252134462>", - dnd: "<:i:1263597927310299208>", + online: "<:OnlineEmbedded:1263597941051101186>", + idle: "<:IdleEmbedded:1263597934252134462>", + dnd: "<:DNDEmbedded:1263597927310299208>", }, }; const OS_ICONS = {