mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Client): omit private properties from toJSON (#8337)
This commit is contained in:
@@ -63,7 +63,7 @@ class BaseClient extends EventEmitter {
|
||||
}
|
||||
|
||||
toJSON(...props) {
|
||||
return flatten(this, { domain: false }, ...props);
|
||||
return flatten(this, ...props);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -454,7 +454,8 @@ class Client extends BaseClient {
|
||||
|
||||
toJSON() {
|
||||
return super.toJSON({
|
||||
readyAt: false,
|
||||
actions: false,
|
||||
presence: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user