fixes or whateva
parent
c6b665fdde
commit
b93edb5893
|
@ -303,4 +303,9 @@ export default class Util {
|
||||||
}
|
}
|
||||||
return `${i}th`;
|
return `${i}th`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public capsFirstLetter(string?: string): string | void {
|
||||||
|
if (typeof string !== 'string') return undefined;
|
||||||
|
return string.substring(0, 1).toUpperCase() + string.substring(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ export default class Whois extends Command {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
embed.addField('Status', member.status === 'dnd' ? 'Do Not Disturb' : this.capsFirstLetter(member.status) || 'Offline', true);
|
embed.addField('Status', member.status === 'dnd' ? 'Do Not Disturb' : this.client.util.capsFirstLetter(member.status) || 'Offline', 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);
|
||||||
const score = await this.client.db.Score.findOne({ userID: member.id }).lean().exec();
|
const score = await this.client.db.Score.findOne({ userID: member.id }).lean().exec();
|
||||||
|
@ -223,13 +223,4 @@ export default class Whois extends Command {
|
||||||
return this.client.util.handleError(err, message, this);
|
return this.client.util.handleError(err, message, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public resolveStaffInformation(id: string) {
|
|
||||||
return null; // acknowledgements.find((m) => m.id === id);
|
|
||||||
}
|
|
||||||
|
|
||||||
public capsFirstLetter(string?: string): string | void {
|
|
||||||
if (typeof string !== 'string') return undefined;
|
|
||||||
return string.substring(0, 1).toUpperCase() + string.substring(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue