Skip to content

Commit 890e79e

Browse files
committed
gradient color support for role
1 parent f082785 commit 890e79e

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

guide/Role/colorRole.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# $colorRole
2-
Modify the color of given role
2+
Changes the color of given role ID
3+
4+
#### Usage: `$colorRole[Role ID;Primary Color (i.e hex or int);Second Color (optional);Third Color (optional)]`
5+
6+
### Example (Primary Color)
7+
```
8+
$colorRole[Role name;green]
9+
```
10+
11+
### Example (Gradient)
12+
```
13+
$colorRole[Role name;green;red]
14+
```
315

4-
#### Usage: `$colorRole[roleID;hex or int color]`
516
##### Function difficulty: <Badge type="tip" text="Easy/ Medium/ Difficult" vertical="middle" />
617
###### Tags: <Badge type="tip" text="role" vertical="middle" /> <Badge type="tip" text="color" vertical="middle" /> <Badge type="tip" text="modify" vertical="middle" />

guide/Role/role.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ a compact function with many functionalities!
1010
* id - role's ID.
1111
* hex - role's hex color.
1212
* color - role's 10 base number
13+
* primaryColor - same as color
14+
* secondColor - secondary color in case of gradient
15+
* thirdColor - third color in case of there is tertiary color
1316
* created - role's date and time of creation.
1417
* position - role's position.
1518
* rawposition - role's raw position.

0 commit comments

Comments
 (0)