Updated examples

This commit is contained in:
hydrabolt
2015-10-28 12:28:38 +00:00
parent c3b6dba6be
commit 211a0de564
5 changed files with 73 additions and 55 deletions

View File

@@ -825,6 +825,13 @@ var Client = (function (_EventEmitter) {
var server = role.server.id;
if (isNaN(Color.toDec(data.color))) {
var err = new Error("Invalid Color");
reject(err);
cb(err);
return;
}
request.patch(Endpoints.SERVERS + "/" + server + "/roles/" + role.id).set("authorization", self.token).send({
color: Color.toDec(data.color) || role.color,
hoist: data.hoist || role.hoist,