From e90917784c5565f49870d1efe4c7c29bddd8b696 Mon Sep 17 00:00:00 2001 From: hydrabolt Date: Wed, 28 Oct 2015 14:31:08 +0000 Subject: [PATCH] Colors documentation --- docs/docs_client.rst | 10 ++++++++++ docs/vars.rst | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/docs_client.rst b/docs/docs_client.rst index f78feca9e..0f434e2a8 100644 --- a/docs/docs_client.rst +++ b/docs/docs_client.rst @@ -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`) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/vars.rst b/docs/vars.rst index c1c148c37..a4f31f3c7 100644 --- a/docs/vars.rst +++ b/docs/vars.rst @@ -13,4 +13,5 @@ .. _Roles : ./docs_permissions.html#id1 .. _ChannelPermissions : ./docs_permissions.html#id3 .. _EvaluatedPermissions : ./docs_permissions.html#id6 -.. _Member : ./docs_member.html \ No newline at end of file +.. _Member : ./docs_member.html +.. _Colors : ./docs_module.html#discord-colors \ No newline at end of file