Skip to content

Commit 222137d

Browse files
anandrepapaia
andauthored
docs(Role): Update various Role method descriptions (#4798)
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
1 parent 372a405 commit 222137d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/structures/Role.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)