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