File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class Role extends Base {
173173 * @example
174174 * // Edit a role
175175 * role.edit({ name: 'new role' })
176- * .then(updated => console.log(`Edited role ${updated.name} name to ${updated.name}`))
176+ * .then(updated => console.log(`Edited role name to ${updated.name}`))
177177 * .catch(console.error);
178178 */
179179 async edit ( data , reason ) {
@@ -232,7 +232,7 @@ class Role extends Base {
232232 * @example
233233 * // Set the name of the role
234234 * role.setName('new role')
235- * .then(updated => console.log(`Edited name of role ${role. name} to ${updated.name}`))
235+ * .then(updated => console.log(`Updated role name to ${updated.name}`))
236236 * .catch(console.error);
237237 */
238238 setName ( name , reason ) {
@@ -262,7 +262,7 @@ class Role extends Base {
262262 * @example
263263 * // Set the hoist of the role
264264 * role.setHoist(true)
265- * .then(r => console.log(`Role hoisted: ${r .hoist}`))
265+ * .then(updated => console.log(`Role hoisted: ${updated .hoist}`))
266266 * .catch(console.error);
267267 */
268268 setHoist ( hoist , reason ) {
You can’t perform that action at this time.
0 commit comments