mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Role): toJSON() throwing due to permission bigints (#6724)
This commit is contained in:
@@ -388,7 +388,10 @@ class Role extends Base {
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return super.toJSON({ createdTimestamp: true });
|
||||
return {
|
||||
...super.toJSON({ createdTimestamp: true }),
|
||||
permissions: this.permissions.toJSON(),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user