From 222137dcd18f60b88b95b058a13723022e568cf1 Mon Sep 17 00:00:00 2001 From: anandre <38661761+anandre@users.noreply.github.com> Date: Tue, 8 Sep 2020 02:58:11 -0500 Subject: [PATCH] docs(Role): Update various Role method descriptions (#4798) Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com> --- src/structures/Role.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/Role.js b/src/structures/Role.js index bba198ecf..94ee2f09a 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -173,7 +173,7 @@ class Role extends Base { * @example * // Edit a role * role.edit({ name: 'new role' }) - * .then(updated => console.log(`Edited role ${updated.name} name to ${updated.name}`)) + * .then(updated => console.log(`Edited role name to ${updated.name}`)) * .catch(console.error); */ async edit(data, reason) { @@ -232,7 +232,7 @@ class Role extends Base { * @example * // Set the name of the role * role.setName('new role') - * .then(updated => console.log(`Edited name of role ${role.name} to ${updated.name}`)) + * .then(updated => console.log(`Updated role name to ${updated.name}`)) * .catch(console.error); */ setName(name, reason) { @@ -262,7 +262,7 @@ class Role extends Base { * @example * // Set the hoist of the role * role.setHoist(true) - * .then(r => console.log(`Role hoisted: ${r.hoist}`)) + * .then(updated => console.log(`Role hoisted: ${updated.hoist}`)) * .catch(console.error); */ setHoist(hoist, reason) {