From 88bf452c393749e001c6672e8b0fa6cec603b277 Mon Sep 17 00:00:00 2001 From: almeidx Date: Thu, 30 Sep 2021 18:48:17 +0100 Subject: [PATCH] fix(Role): toJSON() throwing due to permission bigints --- src/structures/Role.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index d5faa92b9db2..46c8a5dd0020 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -375,7 +375,10 @@ class Role extends Base { } toJSON() { - return super.toJSON({ createdTimestamp: true }); + return { + ...super.toJSON({ createdTimestamp: true }), + permissions: this.permissions.toJSON(), + }; } /**