Skip to content

Commit db41d5c

Browse files
authored
refactor(DJSError): Prefer this.constructor.name (#11294)
refactor(DJSError): prefer `this.constructor.name`
1 parent 179525d commit db41d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/discord.js/src/errors/DJSError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function makeDiscordjsError(Base) {
2020
}
2121

2222
get name() {
23-
return `${super.name} [${this.code}]`;
23+
return `${this.constructor.name} [${this.code}]`;
2424
}
2525
};
2626
}

0 commit comments

Comments
 (0)