Merge branch 'veganhacktivists:main' into main

This commit is contained in:
Stefanie Merceron 2023-11-18 19:24:09 -05:00 committed by GitHub
commit 573fbe0c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -104,7 +104,6 @@ export class SlowmodeCommand extends Command {
if (isNumber(durationCheck)) {
durationCheck += 's';
}
this.container.logger.debug(durationCheck);
const durationParsed = new Duration(durationCheck);
let time = 0;

View File

@ -19,10 +19,10 @@
/**
* Checks if any parsed value is a number.
* @param number check if variable is a number
* @param number check if a string is a number
* @returns {boolean} true if it is a number
*/
export function isNumber(number: any) {
export function isNumber(number: string) {
return !Number.isNaN(+number);
}