Constructor
new RankBuilder(dataopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data | RankData | <optional> | Data to build the rank |
- Source
Members
data :RankData
- Data of the rank.
Type:
- Source
Methods
setColor(color) → {RankBuilder}
Sets the color of the rank.
Parameters:
Name | Type | Description |
---|---|---|
color | String | Color of the rank |
- Source
Returns:
- Type:
- RankBuilder
setMax(max) → {RankBuilder}
Sets the maximum XP required to get the rank (include this level).
Parameters:
Name | Type | Description |
---|---|---|
max | Number | Maximum XP required to get the rank |
- Source
Returns:
- Type:
- RankBuilder
setMin(min) → {RankBuilder}
Sets the minimum XP required to get the rank.
Parameters:
Name | Type | Description |
---|---|---|
min | Number | Minimum XP required to get the rank |
- Source
Returns:
- Type:
- RankBuilder
setNameplate(nameplate) → {RankBuilder}
Sets the nameplate of the rank.
Parameters:
Name | Type | Description |
---|---|---|
nameplate | String | Nameplate of the rank |
- Source
Returns:
- Type:
- RankBuilder
setPriority(priority) → {RankBuilder}
Sets the priority of the rank.
Parameters:
Name | Type | Description |
---|---|---|
priority | Number | Priority of the rank, the higher the priority, the higher the rank |
- Source
Returns:
- Type:
- RankBuilder
toJSON() → {RankData}
Converts the rank builder to a rank object, used to store in the guild.
- Source
Returns:
- Type:
- RankData