WoW API: GetRealmName

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetRealmName to API GetRealmName without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetRealmName

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

realmName = GetRealmName()

Arguments

None

Returns

realmName
String - The name of the realm.

Example

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