caps fix
parent
ae2bf9564e
commit
f661222848
|
@ -329,6 +329,7 @@ export default class Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
public capsFirstLetter(string?: string): string | void {
|
public capsFirstLetter(string?: string): string | void {
|
||||||
|
if (typeof string !== 'string') return;
|
||||||
return string.substring(0, 1).toUpperCase() + string.substring(1);
|
return string.substring(0, 1).toUpperCase() + string.substring(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default class CommandHandler extends Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async run(message: Message) {
|
public async run(message: Message) {
|
||||||
const transaction = Sentry.startTransaction({ name: 'command-handler' });
|
const transaction = Sentry.startTransaction({ name: 'command-handler', op: 'CommandHandler.run' });
|
||||||
try {
|
try {
|
||||||
this.client.db.mongo.Stat.updateOne({ name: 'messages' }, { $inc: { value: 1 } }).exec();
|
this.client.db.mongo.Stat.updateOne({ name: 'messages' }, { $inc: { value: 1 } }).exec();
|
||||||
if (message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
|
|
Loading…
Reference in New Issue