Skip to content

Commit

Permalink
fix(Role): toJSON() throwing due to permission bigints (#6724)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Oct 3, 2021
1 parent 28d96e3 commit 9e421f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/structures/Role.js
Expand Up @@ -388,7 +388,10 @@ class Role extends Base {
}

toJSON() {
return super.toJSON({ createdTimestamp: true });
return {
...super.toJSON({ createdTimestamp: true }),
permissions: this.permissions.toJSON(),
};
}

/**
Expand Down

0 comments on commit 9e421f6

Please sign in to comment.