-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from Rainb0wKey/patch-13
New functions - 30-06-2024 (02-07-2024)
- Loading branch information
Showing
4 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# $getLeaderboardPosition | ||
Get position in leaderboard for given variable. | ||
|
||
## Syntax | ||
``` | ||
$getLeaderboardPosition[Variable type;Variable name;Sort type;(User ID)] | ||
``` | ||
|
||
### Parameters | ||
- `Variable type` `(Type: Enum || Flag: Required)`: The type of the variable. Variable types: | ||
- `user` - [User variable](../guides/introduction/variables.md#user-variables) | ||
- `globalUser` - [Global-User variable](../guides/introduction/variables.md#globalglobal-user-variables) | ||
- `Variable name` `(Type: String || Flag: Required)`: The variable name to generate the leaderboard for. | ||
- `Sort type` `(Type: Enum || Flag: Required)`: The sort type. Sort types: | ||
- `asc` - Sorts the values in ascending order. | ||
- `desc` - Sorts the values in descending order. | ||
- `User ID`: `(Type: Snowflake || Flag: Optional)`: ID of the user from whom you want to get a position in the leaderboard. | ||
|
||
## Example | ||
``` | ||
$nomention | ||
My position in leaderboards: $getLeaderboardPosition[user;Coins;desc] | ||
``` | ||
|
||
``` discord yaml | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
My position in leaderboards: 2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# $isBooster | ||
Returns if user is boosting guild with nitro. | ||
|
||
> "true" means the user is a booster, "false" means it isn't. | ||
## Syntax | ||
``` | ||
$isBooster[(User ID;Guild ID)] | ||
``` | ||
|
||
### Parameters | ||
|
||
## Example | ||
``` | ||
$nomention | ||
Booster? $isBooster[$mentioned[1]] | ||
``` | ||
|
||
``` discord yaml | ||
- user_id: 803569638084313098 | ||
username: RainbowKey | ||
color: "#E67E22" | ||
content: | | ||
!example <@kubastick> | ||
- user_id: 1009018156494368798 | ||
username: BDFD Support | ||
color: "#378afa" | ||
bot: true | ||
verified: true | ||
content: | | ||
Booster? true | ||
``` | ||
|
||
> You can use `$isBooster[]` to get the status of author.\ | ||
> [How `$mentioned[]` works?](./mentioned.md) |