Colors documentation

This commit is contained in:
hydrabolt
2015-10-28 14:31:08 +00:00
parent 211a0de564
commit e90917784c
2 changed files with 12 additions and 1 deletions

View File

@@ -380,6 +380,16 @@ Creates a role (or set of permissions) in a given server.
sendMessages : false
});
// or you can use a hex string for colours
bot.createRole(server, {
name : "My Role",
color : "#ff0000",
sendMessages : false
});
.. note:: Check the Colors_ helper to find out more about valid Role Colors.
createRoleIfNotExists(server, data, `callback`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~