mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +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() {
|
toJSON() {
|
||||||
return super.toJSON({ createdTimestamp: true });
|
return {
|
||||||
|
...super.toJSON({ createdTimestamp: true }),
|
||||||
|
permissions: this.permissions.toJSON(),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user