mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
docs(Role): Update various Role method descriptions (#4798)
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user