Updated docs to include abala's additions

This commit is contained in:
hydrabolt
2015-11-19 20:58:24 +00:00
parent 8ae123c67e
commit ae635685da
9 changed files with 44 additions and 8 deletions

View File

@@ -497,6 +497,42 @@ Overwrites the permissions of a role or a user in a channel
"sendMessages" : false, "sendMessages" : false,
"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
------ ------

View File

@@ -849,4 +849,4 @@ var Client = (function (_EventEmitter) {
return Client; return Client;
})(EventEmitter); })(EventEmitter);
module.exports = Client; module.exports = Client;

View File

@@ -1590,4 +1590,4 @@ var InternalClient = (function () {
return InternalClient; return InternalClient;
})(); })();
module.exports = InternalClient; module.exports = InternalClient;

View File

@@ -207,4 +207,4 @@ var Resolver = (function () {
return Resolver; return Resolver;
})(); })();
module.exports = Resolver; module.exports = Resolver;

View File

@@ -69,4 +69,4 @@ var Message = (function () {
return Message; return Message;
})(); })();
module.exports = Message; module.exports = Message;

View File

@@ -52,4 +52,4 @@ var PMChannel = (function (_Equality) {
return PMChannel; return PMChannel;
})(Equality); })(Equality);
module.exports = PMChannel; module.exports = PMChannel;

View File

@@ -114,4 +114,4 @@ var ServerChannel = (function (_Channel) {
return ServerChannel; return ServerChannel;
})(Channel); })(Channel);
module.exports = ServerChannel; module.exports = ServerChannel;

View File

@@ -57,4 +57,4 @@ var TextChannel = (function (_ServerChannel) {
return TextChannel; return TextChannel;
})(ServerChannel); })(ServerChannel);
module.exports = TextChannel; module.exports = TextChannel;

View File

@@ -99,4 +99,4 @@ var Cache = (function (_Array) {
return Cache; return Cache;
})(Array); })(Array);
module.exports = Cache; module.exports = Cache;