fix(Client): omit private properties from toJSON (#8337)

This commit is contained in:
SpaceEEC
2022-07-22 17:11:54 +02:00
committed by GitHub
parent 74ec7be346
commit 830c670c61
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class BaseClient extends EventEmitter {
}
toJSON(...props) {
return flatten(this, { domain: false }, ...props);
return flatten(this, ...props);
}
}

View File

@@ -454,7 +454,8 @@ class Client extends BaseClient {
toJSON() {
return super.toJSON({
readyAt: false,
actions: false,
presence: false,
});
}