mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Fix #1287 (Role#serialize)
This commit is contained in:
parent
f5da1f2411
commit
2349238f69
1 changed files with 2 additions and 2 deletions
|
|
@ -137,11 +137,11 @@ class Role {
|
|||
* Get an object mapping permission names to whether or not the role enables that permission
|
||||
* @returns {Object<string, boolean>}
|
||||
* @example
|
||||
* // print the serialized role
|
||||
* // print the serialized role permissions
|
||||
* console.log(role.serialize());
|
||||
*/
|
||||
serialize() {
|
||||
return this.client.resolver.serializePermissions(this.permissions);
|
||||
return new Permissions(this.permissions).serialize();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue