Skip to content

$(leagueoflegends)

Syntax
$(leagueoflegends <name#tag> <region>)
Arguments
Required

The $(leagueoflegends) variable allows you to retrieve and display the current rank and LP (League Points) of a specified League of Legends player using the StreamElements Chatbot.

!command add !rank My current rank: $(leagueoflegends styler#euw euw)
Example chat
ViewerName:!rank
partner badgemoderator badgeStreamElements:My current rank: Gold IV (81 LP)

To use this variable, you need to provide two parameters: the player’s Riot ID or Summoner Name, and the region.

$(leagueoflegends <Riot ID/Summoner Name> <region>)

The name comes first here — the opposite of $(teamfighttactics), where the region comes first.

The output format is <Tier> <Division> (<LP> LP), for example Gold IV (81 LP) or Challenger I (1229 LP).

$(leagueoflegends styler#euw euw)
$(leagueoflegends "Doublelift#na1" na)

Example output:

Challenger I (1229 LP)
  1. Riot ID/Summoner Name: The player’s unique identifier, e.g. styler#euw
  2. Region: The server region of the player (e.g., euw, na)
  • br (Brazil)
  • eune (Europe Nordic & East)
  • euw (Europe West)
  • jp (Japan)
  • kr (Republic of Korea)
  • lan (Latin America North)
  • las (Latin America South)
  • na (North America)
  • oce (Oceania)
  • pbe (Public Beta Environment)
  • ph (Philippines)
  • ru (Russia)
  • sg (Singapore)
  • th (Thailand)
  • tw (Taiwan)
  • tr (Turkey)
  • vn (Vietnam)

Q: Why isn’t the rank updating immediately?

A: Rank data may have a slight delay due to API caching. It typically updates within a few minutes after a player’s ranked game.

Q: What happens if the lookup fails?

A: If the player can’t be found or the API request fails, the bot replies with the raw error message returned by the API.