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`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -13,4 +13,5 @@
.. _Roles : ./docs_permissions.html#id1
.. _ChannelPermissions : ./docs_permissions.html#id3
.. _EvaluatedPermissions : ./docs_permissions.html#id6
.. _Member : ./docs_member.html
.. _Member : ./docs_member.html
.. _Colors : ./docs_module.html#discord-colors