mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Fix #1287 (Role#serialize)
This commit is contained in:
@@ -137,11 +137,11 @@ class Role {
|
|||||||
* Get an object mapping permission names to whether or not the role enables that permission
|
* Get an object mapping permission names to whether or not the role enables that permission
|
||||||
* @returns {Object<string, boolean>}
|
* @returns {Object<string, boolean>}
|
||||||
* @example
|
* @example
|
||||||
* // print the serialized role
|
* // print the serialized role permissions
|
||||||
* console.log(role.serialize());
|
* console.log(role.serialize());
|
||||||
*/
|
*/
|
||||||
serialize() {
|
serialize() {
|
||||||
return this.client.resolver.serializePermissions(this.permissions);
|
return new Permissions(this.permissions).serialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user