Fandom

WoWWiki

API GetRealmName

104,753pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetRealmName

Returns the name of the realm (aka server) the player is currently on.

realmName = GetRealmName()

Arguments Edit

None

Returns Edit

realmName 
String - The name of the realm.

Example Edit

local realmName = GetRealmName()
DEFAULT_CHAT_FRAME:AddMessage("You are currently on realm: " .. realmName)
> You are currently on realm: Gorgonnash

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.