mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Updated docs to include abala's additions
This commit is contained in:
@@ -498,6 +498,42 @@ Overwrites the permissions of a role or a user in a channel
|
|||||||
"attachFiles" : true
|
"attachFiles" : true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateRole(role, data, `callback`)
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Updates a role in a server.
|
||||||
|
|
||||||
|
- **role** - a Role_
|
||||||
|
- **data** - an `object` taking the structure shown below
|
||||||
|
- **callback** - a `function` taking the following:
|
||||||
|
|
||||||
|
- **error** - error if any occurred
|
||||||
|
- **role** - the updated Role_
|
||||||
|
|
||||||
|
.. code-block:: js
|
||||||
|
|
||||||
|
// structure of data parameter (all attrs optional):
|
||||||
|
|
||||||
|
{
|
||||||
|
color : 0xFF0000,
|
||||||
|
hoist : false,
|
||||||
|
name : "A New Role!",
|
||||||
|
permissions : [
|
||||||
|
// see the constants documentation for full permissions
|
||||||
|
"attachFiles", "sendMessages"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteInvite(invite, `callback`)
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Deletes an invite
|
||||||
|
|
||||||
|
- **invite** - An `Invite ID Resolvable`_
|
||||||
|
- **callback** - a `function` taking the following:
|
||||||
|
|
||||||
|
- **error** - error if any occurred
|
||||||
|
|
||||||
Events
|
Events
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user