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

@@ -874,6 +874,13 @@ class Client extends 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)