refactor(DJSError): Prefer this.constructor.name (#11294)

refactor(DJSError): prefer `this.constructor.name`
This commit is contained in:
Jiralite
2025-11-22 12:45:33 +00:00
committed by GitHub
parent 179525d9fc
commit db41d5cb68

View File

@@ -20,7 +20,7 @@ function makeDiscordjsError(Base) {
}
get name() {
return `${super.name} [${this.code}]`;
return `${this.constructor.name} [${this.code}]`;
}
};
}