From 68e1d236cc8b41b76a07b00cdc19f03a53d4f159 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Sat, 2 Sep 2023 09:35:08 +1000 Subject: [PATCH] Update whois.ts --- src/commands/whois.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index c691bbc..c4d3a72 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -45,9 +45,9 @@ export default { ) if (member.premiumSinceTimestamp !== null) embed.addFields({name: '🔹 Server Boosting since', value: `\n`, inline: true}) if (!presence) embed.addFields({name: `🔹 Status: ⚫`, value: '\u200b'}) - if (member.presence) embed.addFields({name: `🔹 Status: ${member.presence.status}`, value: `${member.presence.status === 'offline' ? '⚫' : `Desktop: ${convert(presence.desktop)}\nWeb: ${convert(presence.web)}\nMobile: ${convert(presence.mobile)}`}`, inline: true}) + if (member.presence) embed.addFields({name: `🔹 Status:`, value: `${member.presence.status === 'offline' ? '⚫' : `Desktop: ${convert(presence.desktop)}\nWeb: ${convert(presence.web)}\nMobile: ${convert(presence.mobile)}`}`, inline: true}) embedArray.push(embed) - if (member.presence.activities.find(a=>a.type === 2)/* && member.presence.activities.find(a=>a.type === 2)?.assets */) { + if (member.presence.activities.find(a=>a.type === 2)) { const spotifyStatus = member.presence?.activities.find(a=>a.name === 'Spotify') as Discord.Activity; const spotifyEmbed = new client.embed() .setColor('#1DB954') // Thanks Copilot, I never knew I needed this shade of green. It's actually looks like Spotify's color. @@ -70,4 +70,4 @@ export default { .setName('member') .setDescription('Member or user to view their information') .setRequired(true)) -} \ No newline at end of file +}