utility.presence: fix icons

This commit is contained in:
Cynthia Foxwell 2023-01-22 13:29:04 -07:00
parent 3f08e9aeb0
commit dff6bb3e27
1 changed files with 2 additions and 2 deletions

View File

@ -716,7 +716,7 @@ presence.callback = async function (msg, line) {
for (const platform of Object.keys(target.clientStatus)) {
const status = target.clientStatus[platform];
icons += PRESENCE_ICONS[platform][status] + " ";
icons += (PRESENCE_ICONS[platform][status] ?? "") + " ";
}
const embeds = [];
@ -902,7 +902,7 @@ presence.callback = async function (msg, line) {
}
return {
content: `Presence for **${target.username}#${target.discriminator}**: ${icons}`,
content: `Presence for **${target.username}#${target.discriminator}**: ${icons.trim()}`,
embeds,
files,
};