mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Colors documentation
This commit is contained in:
@@ -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`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user