mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
Updated docs to include abala's additions
This commit is contained in:
parent
8ae123c67e
commit
ae635685da
9 changed files with 44 additions and 8 deletions
|
|
@ -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
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue