WoW LibRealmInfo addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon LibRealmInfo

LibRealmInfo

Game Version: 9.0.2
Total Downloads: 6,243
Updated: Jan 21, 2021
Created: Jul 28, 2014
download LibRealmInfoDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
17 release 23.48 KB Jan 21, 2021 9.0.2 1 download LibRealmInfo 17 releaseDownload
14 release 16.47 KB Jan 2, 2019 8.1.0 1,325 download LibRealmInfo 14 releaseDownload
13 release 16.89 KB Jul 29, 2018 8.0.1 1,067 download LibRealmInfo 13 releaseDownload
12 release 20.69 KB Feb 8, 2018 7.3.5 505 download LibRealmInfo 12 releaseDownload
11 release 20.26 KB Jun 10, 2017 7.2.5 647 download LibRealmInfo 11 releaseDownload
10 release 20.30 KB Jan 10, 2015 6.0.3 1,530 download LibRealmInfo 10 releaseDownload
9 release 22.58 KB Nov 3, 2014 6.0.3 306 download LibRealmInfo 9 releaseDownload
8 release 20.34 KB Nov 3, 2014 6.0.3 144 download LibRealmInfo 8 releaseDownload
7 release 20.51 KB Nov 3, 2014 5.4.8 56 download LibRealmInfo 7 releaseDownload
6 release 20.46 KB Nov 3, 2014 5.4.8 73 download LibRealmInfo 6 releaseDownload
7 release 19.98 KB Oct 6, 2014 6.0.2 +1 58 download LibRealmInfo 7 releaseDownload
5 release 19.89 KB Aug 10, 2014 5.4.8 201 download LibRealmInfo 5 releaseDownload
4 release 16.65 KB Aug 3, 2014 5.4.8 113 download LibRealmInfo 4 releaseDownload
3 release 15.23 KB Jul 29, 2014 5.4.8 80 download LibRealmInfo 3 releaseDownload
2 release 9.82 KB Jul 29, 2014 5.4.8 97 download LibRealmInfo 2 releaseDownload
1 release 16.11 KB Jul 28, 2014 5.4.8 40 download LibRealmInfo 1 releaseDownload

Description

Share this:

LibRealmInfo

Library to provide information about realms by ID or name.

  • Full API documentation
  • How to embed LibRealmInfo in your addon
  • Issue tracker

Usage

lib = LibStub("LibRealmInfo")

Available API methods:

  • :GetCurrentRegion() – Get the two-letter abbrevation for the region the player is currently connected to; one of US, EU, KR, TW, or CN. Returns nil on PTR and Beta realms.
  • :GetRealmInfo(name[, region]) – Get information about a realm by name; if no region is provided, the player's current region will be assumed.
  • :GetRealmInfoByID(id) – Get information about a realm by ID.
  • :GetRealmInfoByGUID(guid) – Get information about the realm the given player GUID belongs to.
  • :GetRealmInfoByUnit(unit) – Get information about the realm the given player unit belongs to.

All of the GetRealmInfo* methods return the following values:

  1. id – (number) the unique ID number of the realm
  2. name – (string) the name of the realm
  3. apiName – (string) the name of the realm without spaces, as seen in chat etc. for use with WoW API functions
  4. rules – (string) one of "PVP", "PVE", "RP" or "RPPVP"
  5. locale – (string) the official language of the realm, eg. "enUS" or "esMX"
  6. battlegroup – (string) the name of the realm's battlegroup
  7. region – (string) one of "US", "EU", "KR", "CN" or "TW"
  8. timezone – (string) the realm's time zone, eg. "PST" or "AEST" (US realms only)
  9. connections – (indexed table) IDs of realms connected to this one
  10. englishName – the English name of the realm
  11. englishAPIName – the English name of the realm without spaces

Note that the realm IDs contained in the GUIDs of player characters on connected realms indicate the realm hosting the connected realm group, which may not be the realm that character actually belongs to. Use GetPlayerInfoByGUID to get the real realm name, or use the :GetRealmInfoByGUID or :GetRealmInfoByUnit methods provided by LibRealmInfo.

Comments

Add a comment