mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +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) {
|
toJSON(...props) {
|
||||||
return flatten(this, { domain: false }, ...props);
|
return flatten(this, ...props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -454,7 +454,8 @@ class Client extends BaseClient {
|
|||||||
|
|
||||||
toJSON() {
|
toJSON() {
|
||||||
return super.toJSON({
|
return super.toJSON({
|
||||||
readyAt: false,
|
actions: false,
|
||||||
|
presence: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user