From 9e421f6ccf09230769740e069590fb8937f766b9 Mon Sep 17 00:00:00 2001 From: Almeida Date: Sun, 3 Oct 2021 14:01:24 +0100 Subject: [PATCH] fix(Role): toJSON() throwing due to permission bigints (#6724) --- 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 9e7bd9be1..0c3c50e20 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -388,7 +388,10 @@ class Role extends Base { } toJSON() { - return super.toJSON({ createdTimestamp: true }); + return { + ...super.toJSON({ createdTimestamp: true }), + permissions: this.permissions.toJSON(), + }; } /**