1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -05:00

minipatch

This commit is contained in:
AnxietyisReal 2023-09-03 19:27:58 +10:00
parent 60890a28e1
commit e4b3581acc

View File

@ -47,7 +47,7 @@ export default {
if (!presence) embed.addFields({name: `🔹 Status: ⚫`, value: '\u200b'}) if (!presence) embed.addFields({name: `🔹 Status: ⚫`, value: '\u200b'})
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}) 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) embedArray.push(embed)
if (member.presence.activities.find(a=>a.type === 2)) { if (member.presence?.activities.find(a=>a.type === 2)) {
const spotifyStatus = member.presence?.activities.find(a=>a.name === 'Spotify') as Discord.Activity; const spotifyStatus = member.presence?.activities.find(a=>a.name === 'Spotify') as Discord.Activity;
const spotifyEmbed = new client.embed() 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. .setColor('#1DB954') // Thanks Copilot, I never knew I needed this shade of green. It's actually looks like Spotify's color.