
LibRealmInfo
Library to provide information about realms.
Addon Details
Expansion
Categories
Developers
Having issues?
LibRealmInfo
Library to provide information about realms by ID or name.
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:
id- (number) the unique ID number of the realmname- (string) the name of the realmapiName- (string) the name of the realm without spaces, as seen in chat etc. for use with WoW API functionsrules- (string) one of "PVP", "PVE", "RP" or "RPPVP"locale- (string) the official language of the realm, eg. "enUS" or "esMX"battlegroup- (string) the name of the realm's battlegroupregion- (string) one of "US", "EU", "KR", "CN" or "TW"timezone- (string) the realm's time zone, eg. "PST" or "AEST" (US realms only)connections- (indexed table) IDs of realms connected to this oneenglishName- the English name of the realmenglishAPIName- 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.
More addons for Legion
Discover other addons that might interest you
WoWGatheringNodes
Retail & Classic Node Database and custom object injector for Gathermate2, Carbonite
Omen Threat Meter
A lightweight, flexible, multi-target threat meter.
bdChat
A simple chat replacement with shorter lines and link clicking
Hide Increase Backpack Button
hides the little plus in your backpack
TellMeWhen_Script_Tools
A list of utilities to help create script-driven icons and bars with TellMeWhen
HiddenArtifactTracker
In-tooltip tracker for achievement progress for unlocking hidden artifact tints.
KkthnxUI
KkthnxUI is a simplistic user interface that holds onto the information and functionality.
RCLootCouncil – EPGP
RCLootCouncil module that adds full EPGP support and customization.