master
Matthew 2022-03-22 12:52:28 -04:00
parent ae2bf9564e
commit f661222848
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 2 additions and 1 deletions

View File

@ -329,6 +329,7 @@ export default class Util {
}
public capsFirstLetter(string?: string): string | void {
if (typeof string !== 'string') return;
return string.substring(0, 1).toUpperCase() + string.substring(1);
}
}

View File

@ -12,7 +12,7 @@ export default class CommandHandler extends Event {
}
public async run(message: Message) {
const transaction = Sentry.startTransaction({ name: 'command-handler' });
const transaction = Sentry.startTransaction({ name: 'command-handler', op: 'CommandHandler.run' });
try {
this.client.db.mongo.Stat.updateOne({ name: 'messages' }, { $inc: { value: 1 } }).exec();
if (message.author.bot) return;