Fix #1287 (Role#serialize)

This commit is contained in:
Schuyler Cebulskie
2017-03-21 01:24:53 -04:00
parent f5da1f2411
commit 2349238f69

View File

@@ -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();
}
/**