From 2349238f691389c17be21f03d2e24a18122808d2 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Tue, 21 Mar 2017 01:24:53 -0400 Subject: [PATCH] Fix #1287 (Role#serialize) --- src/structures/Role.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index d2ec8814d..5873acb72 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -137,11 +137,11 @@ class Role { * Get an object mapping permission names to whether or not the role enables that permission * @returns {Object} * @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(); } /**