mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
docs(Role): Update various Role method descriptions (#4798)
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
This commit is contained in:
parent
372a405926
commit
222137dcd1
1 changed files with 3 additions and 3 deletions
|
|
@ -173,7 +173,7 @@ class Role extends Base {
|
||||||
* @example
|
* @example
|
||||||
* // Edit a role
|
* // Edit a role
|
||||||
* role.edit({ name: 'new 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);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
async edit(data, reason) {
|
async edit(data, reason) {
|
||||||
|
|
@ -232,7 +232,7 @@ class Role extends Base {
|
||||||
* @example
|
* @example
|
||||||
* // Set the name of the role
|
* // Set the name of the role
|
||||||
* role.setName('new 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);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setName(name, reason) {
|
setName(name, reason) {
|
||||||
|
|
@ -262,7 +262,7 @@ class Role extends Base {
|
||||||
* @example
|
* @example
|
||||||
* // Set the hoist of the role
|
* // Set the hoist of the role
|
||||||
* role.setHoist(true)
|
* role.setHoist(true)
|
||||||
* .then(r => console.log(`Role hoisted: ${r.hoist}`))
|
* .then(updated => console.log(`Role hoisted: ${updated.hoist}`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
setHoist(hoist, reason) {
|
setHoist(hoist, reason) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue