Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 05963d3

Browse files
committed
Fix because stupid me did not test build in the previous commit.
1 parent 817581e commit 05963d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ export class Client extends events.EventEmitter {
229229

230230
this._token = token;
231231
if (options) {
232-
this.defaultName ??= options.defaultName;
233-
this.defaultFormattingMode ??= options.defaultFormattingMode;
232+
this.defaultName = options.defaultName ?? this.defaultName;
233+
this.defaultFormattingMode = options.defaultFormattingMode ?? this.defaultFormattingMode;
234234
}
235235

236236
this.on("afk", e => this.updatePlayer(e.user));

0 commit comments

Comments
 (0)