From a1b6e6a6b9527b08977878bf2b404b8ce4604c75 Mon Sep 17 00:00:00 2001 From: Kitosight Date: Sat, 13 Jul 2024 20:52:37 +0300 Subject: [PATCH 1/2] Update getLeaderboardPosition.md --- src/bdscript/getLeaderboardPosition.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bdscript/getLeaderboardPosition.md b/src/bdscript/getLeaderboardPosition.md index fa1a8bea18..9fe5727a75 100644 --- a/src/bdscript/getLeaderboardPosition.md +++ b/src/bdscript/getLeaderboardPosition.md @@ -1,5 +1,5 @@ # $getLeaderboardPosition -Get position in leaderboard for given variable. +Get position in a leaderboard for a given variable. ## Syntax ``` @@ -7,19 +7,19 @@ $getLeaderboardPosition[Variable type;Variable name;Sort type;(User ID)] ``` ### Parameters -- `Variable type` `(Type: Enum || Flag: Required)`: The type of the variable. Variable types: +- `Variable type` `(Type: Enum || Flag: Required)`: The variable type. 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. +- `Variable name` `(Type: String || Flag: Required)`: The variable name to generate a 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. + - `asc` - Sorts values in ascending order. + - `desc` - Sorts values in descending order. +- `User ID`: `(Type: Snowflake || Flag: Optional)`: The ID of a user from whom you want to get a position in a leaderboard. ## Example ``` $nomention -My position in leaderboards: $getLeaderboardPosition[user;Coins;desc] +Your position in the leaderboard: $getLeaderboardPosition[user;Coins;asc] ``` ``` discord yaml @@ -34,5 +34,5 @@ My position in leaderboards: $getLeaderboardPosition[user;Coins;desc] bot: true verified: true content: | - My position in leaderboards: 2 + Your position in the leaderboard: 2 ``` From 8596e502da98f0930ada34be322b1e87db6542d9 Mon Sep 17 00:00:00 2001 From: Kitosight Date: Tue, 16 Jul 2024 03:40:37 +0300 Subject: [PATCH 2/2] Update getLeaderboardPosition.md --- src/bdscript/getLeaderboardPosition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/getLeaderboardPosition.md b/src/bdscript/getLeaderboardPosition.md index 9fe5727a75..01da7d2ab7 100644 --- a/src/bdscript/getLeaderboardPosition.md +++ b/src/bdscript/getLeaderboardPosition.md @@ -19,7 +19,7 @@ $getLeaderboardPosition[Variable type;Variable name;Sort type;(User ID)] ## Example ``` $nomention -Your position in the leaderboard: $getLeaderboardPosition[user;Coins;asc] +Your position in the leaderboard: $getLeaderboardPosition[user;Coins;desc] ``` ``` discord yaml