Versus
Use versus to compare two players or list the matches they played against
each other.
versus.get()
Gets the ranked and casual result summary.
Parameters
| Parameter | Type | Description |
|---|---|---|
first |
string |
First player's nickname, UUID, or linked Discord ID in discord.{id} format |
second |
string |
Second player's nickname, UUID, or linked Discord ID in discord.{id} format |
options.season |
number |
Filters the comparison by season; the API default is the current season |
VersusStats includes both profiles, ranked and casual result counts, and the
rating changes returned by the API.
versus.matches()
Gets the matches played between the two players.
Options
| Option | Type | Description |
|---|---|---|
after |
number |
Gets matches after this match ID |
before |
number |
Gets matches before this match ID |
count |
number |
Limits the result to 1 through 100 matches; the API default is 20 |
season |
number |
Filters by season; the API default is the current season |
type |
number |
Filters by the API's numeric match type |
For a task-based example, read compare two players.