mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Updated docs to include abala's additions
This commit is contained in:
@@ -497,6 +497,42 @@ Overwrites the permissions of a role or a user in a channel
|
||||
"sendMessages" : false,
|
||||
"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
|
||||
------
|
||||
|
||||
@@ -849,4 +849,4 @@ var Client = (function (_EventEmitter) {
|
||||
return Client;
|
||||
})(EventEmitter);
|
||||
|
||||
module.exports = Client;
|
||||
module.exports = Client;
|
||||
@@ -1590,4 +1590,4 @@ var InternalClient = (function () {
|
||||
return InternalClient;
|
||||
})();
|
||||
|
||||
module.exports = InternalClient;
|
||||
module.exports = InternalClient;
|
||||
@@ -207,4 +207,4 @@ var Resolver = (function () {
|
||||
return Resolver;
|
||||
})();
|
||||
|
||||
module.exports = Resolver;
|
||||
module.exports = Resolver;
|
||||
@@ -69,4 +69,4 @@ var Message = (function () {
|
||||
return Message;
|
||||
})();
|
||||
|
||||
module.exports = Message;
|
||||
module.exports = Message;
|
||||
@@ -52,4 +52,4 @@ var PMChannel = (function (_Equality) {
|
||||
return PMChannel;
|
||||
})(Equality);
|
||||
|
||||
module.exports = PMChannel;
|
||||
module.exports = PMChannel;
|
||||
@@ -114,4 +114,4 @@ var ServerChannel = (function (_Channel) {
|
||||
return ServerChannel;
|
||||
})(Channel);
|
||||
|
||||
module.exports = ServerChannel;
|
||||
module.exports = ServerChannel;
|
||||
@@ -57,4 +57,4 @@ var TextChannel = (function (_ServerChannel) {
|
||||
return TextChannel;
|
||||
})(ServerChannel);
|
||||
|
||||
module.exports = TextChannel;
|
||||
module.exports = TextChannel;
|
||||
@@ -99,4 +99,4 @@ var Cache = (function (_Array) {
|
||||
return Cache;
|
||||
})(Array);
|
||||
|
||||
module.exports = Cache;
|
||||
module.exports = Cache;
|
||||
Reference in New Issue
Block a user