mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +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`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user