diff --git a/packages/stat-reporter/nestcord-stat-reporter.service.ts b/packages/stat-reporter/nestcord-stat-reporter.service.ts index a0b0c23..1b0b3d6 100644 --- a/packages/stat-reporter/nestcord-stat-reporter.service.ts +++ b/packages/stat-reporter/nestcord-stat-reporter.service.ts @@ -78,7 +78,9 @@ export class NestCordStatReporterService implements OnModuleInit { private replacePlaceholders(obj: any, replacements: { [key: string]: any }): any { if (typeof obj === 'string') { - return obj.replace(/{{(.*?)}}/g, (_, key) => replacements[key] ?? _); + const val = obj.replace(/{{(.*?)}}/g, (_, key) => replacements[key] ?? _); + + return !isNaN(parseFloat(val)) ? Number(val) : val; } if (obj && typeof obj === 'object') { Object.entries(obj).forEach(([key, value]) => {