remove platform from whois (keeps erroring someone fix)
parent
211a82974a
commit
5c0b168041
|
@ -47,6 +47,10 @@ export default class Whois extends Command {
|
||||||
if (ackResolve?.emailAddress) {
|
if (ackResolve?.emailAddress) {
|
||||||
description += `${emotes.email} ${ackResolve.emailAddress}\n`;
|
description += `${emotes.email} ${ackResolve.emailAddress}\n`;
|
||||||
}
|
}
|
||||||
|
const pager = await this.client.db.PagerNumber.findOne({ individualAssignID: member.user.id });
|
||||||
|
if (pager?.num) {
|
||||||
|
description += `📡 ${pager.num}\n`;
|
||||||
|
}
|
||||||
if (ackResolve?.gitlab) {
|
if (ackResolve?.gitlab) {
|
||||||
description += `${emotes.gitlab} ${ackResolve.gitlab}\n`;
|
description += `${emotes.gitlab} ${ackResolve.gitlab}\n`;
|
||||||
}
|
}
|
||||||
|
@ -66,8 +70,8 @@ export default class Whois extends Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
embed.addField('Status', member.status === 'dnd' ? 'Do Not Disturb' : this.capsFirstLetter(member.status) || 'Unknown', true);
|
embed.addField('Status', member.status === 'dnd' ? 'Do Not Disturb' : this.capsFirstLetter(member.status) || 'Unknown', true);
|
||||||
const platform = member.bot && member.status !== 'offline' ? 'API/WebSocket' : Object.entries(message.member.clientStatus).filter((a) => a[1] !== 'offline').map((a) => this.capsFirstLetter(a[0])).join(', ');
|
// const platform = member.bot && member.status !== 'offline' ? 'API/WebSocket' : Object.entries(message.member.clientStatus).filter((a) => a[1] !== 'offline').map((a) => this.capsFirstLetter(a[0])).join(', ');
|
||||||
if (platform) embed.addField('Platform', platform, true);
|
// if (platform) embed.addField('Platform', platform, true);
|
||||||
embed.addField('Joined At', `${moment(new Date(member.joinedAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
embed.addField('Joined At', `${moment(new Date(member.joinedAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
||||||
embed.addField('Created At', `${moment(new Date(member.user.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
embed.addField('Created At', `${moment(new Date(member.user.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
||||||
if (member.roles.length > 0) {
|
if (member.roles.length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue