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

refactor(DJSError): prefer `this.constructor.name`
This commit is contained in:
Jiralite
2025-11-22 12:50:54 +00:00
parent fdac8c5bdd
commit e32f0c141a
+1 -1
View File
@@ -19,7 +19,7 @@ function makeDiscordjsError(Base) {
}
get name() {
return `${super.name} [${this.code}]`;
return `${this.constructor.name} [${this.code}]`;
}
};
}