fixes or whateva

merge-requests/21/merge
Matthew 2021-03-05 22:46:00 -05:00
parent c6b665fdde
commit b93edb5893
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 6 additions and 10 deletions

View File

@ -303,4 +303,9 @@ export default class Util {
}
return `${i}th`;
}
public capsFirstLetter(string?: string): string | void {
if (typeof string !== 'string') return undefined;
return string.substring(0, 1).toUpperCase() + string.substring(1);
}
}

View File

@ -74,7 +74,7 @@ export default class Whois extends Command {
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('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();
@ -223,13 +223,4 @@ export default class Whois extends Command {
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);
}
}